Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7862

Adopting the Image service - NFS glance adoption example output is Warning: unknown field "spec.glance.template.glanceAPIs.default.override.service.spec.type"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Low

      In the section: "Adopting the Image service that is deployed with an NFS Ganesha backend"

      The next example:

       

      cat << EOF > glance_nfs_patch.yaml
      spec:
        extraMounts:
        - extraVol:
          - extraVolType: Nfs
            mounts:
            - mountPath: /var/lib/glance/images
              name: nfs
            propagation:
            - Glance
            volumes:
            - name: nfs
              nfs:
                path: /var/nfs
                server: 172.17.3.20
          name: r1
          region: r1
        glance:
          enabled: true
          template:
            databaseInstance: openstack
            customServiceConfig: |
               [DEFAULT]
               enabled_backends = default_backend:file
               [glance_store]
               default_backend = default_backend
               [default_backend]
               filesystem_store_datadir = /var/lib/glance/images/
            storageClass: "local-storage"
            storageRequest: 10G
            glanceAPIs:
              default:
                replicas: 1
                type: single
                override:
                  service:
                    internal:
                      metadata:
                        annotations:
                          metallb.universe.tf/address-pool: internalapi
                          metallb.universe.tf/allow-shared-ip: internalapi
                          metallb.universe.tf/loadBalancerIPs: 172.17.0.80
                    spec:
                      type: LoadBalancer
                networkAttachments:
                - storage
      EOF
       
      

      complains about Warning: unknown field "spec.glance.template.glanceAPIs.default.override.service.spec.type"

       

      The right example should be:

       

       

      cat << EOF > glance_nfs_patch.yaml
      spec:
        extraMounts:
        - extraVol:
          - extraVolType: Nfs
            mounts:
            - mountPath: /var/lib/glance/images
              name: nfs
            propagation:
            - Glance
            volumes:
            - name: nfs
              nfs:
                path: /var/nfs
                server: 172.17.3.20
          name: r1
          region: r1
        glance:
          enabled: true
          template:
            databaseInstance: openstack
            customServiceConfig: |
               [DEFAULT]
               enabled_backends = default_backend:file
               [glance_store]
               default_backend = default_backend
               [default_backend]
               filesystem_store_datadir = /var/lib/glance/images/
            storageClass: "local-storage"
            storageRequest: 10G
            glanceAPIs:
              default:
                replicas: 1
                type: single
                override:
                  service:
                    internal:
                      metadata:
                        annotations:
                          metallb.universe.tf/address-pool: internalapi
                          metallb.universe.tf/allow-shared-ip: internalapi
                          metallb.universe.tf/loadBalancerIPs: 172.17.0.80
                      spec:
                        type: LoadBalancer
                networkAttachments:
                - storage
      EOF
      

      Other examples should be checked as well.

       

            fpantano@redhat.com Francesco Pantano
            pnavarro@redhat.com Pedro Navarro Perez
            rhos-dfg-storage-squad-glance
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: