Docs: --is-public parameter for glance image-create has been removed

Bug #1494807 reported by Lucas Alvares Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Low
Lucas Alvares Gomes

Bug Description

In a couple of parts of our install guide we use the "--is-public True/False" parameter for the "glance image-create" command, but this command is now failing with new versions of the glance client like:

 stack@virtual-machine:~/devstack$ glance image-create --is-public True --name centos-atomic --container-format bare --disk-format qcow2 < CentOS-Atomic-Host-7-GenericCloud.qcow2 usage: glance [--version] [-d] [-v] [--get-schema] [--timeout TIMEOUT]
              [--no-ssl-compression] [-f] [--os-image-url OS_IMAGE_URL]
              [--os-image-api-version OS_IMAGE_API_VERSION]
              [--profile HMAC_KEY] [-k] [--os-cert OS_CERT]
              [--cert-file OS_CERT] [--os-key OS_KEY] [--key-file OS_KEY]
              [--os-cacert <ca-certificate-file>] [--ca-file OS_CACERT]
              [--os-username OS_USERNAME] [--os-user-id OS_USER_ID]
              [--os-user-domain-id OS_USER_DOMAIN_ID]
              [--os-user-domain-name OS_USER_DOMAIN_NAME]
              [--os-project-id OS_PROJECT_ID]
              [--os-project-name OS_PROJECT_NAME]
              [--os-project-domain-id OS_PROJECT_DOMAIN_ID]
              [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
              [--os-password OS_PASSWORD] [--os-tenant-id OS_TENANT_ID]
              [--os-tenant-name OS_TENANT_NAME] [--os-auth-url OS_AUTH_URL]
              [--os-region-name OS_REGION_NAME]
              [--os-auth-token OS_AUTH_TOKEN]
              [--os-service-type OS_SERVICE_TYPE]
              [--os-endpoint-type OS_ENDPOINT_TYPE]
              <subcommand> ...
glance: error: unrecognized arguments: --is-public True

Talking on IRC with glance devs the reason for that is because now glance defaults to the v2 API which has a non-binary visibility field. So in our guides we can:

* replace the "--is-public" parameters with the "--visibility"

OR

* export "OS_IMAGE_API_VERSION=1" when running the glance image-create commands.

Changed in ironic:
assignee: nobody → Lucas Alvares Gomes (lucasagomes)
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/222678

Changed in ironic:
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/222678
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=d98901aa015db1ec10199fb92ebd211ed6038d84
Submitter: Jenkins
Branch: master

commit d98901aa015db1ec10199fb92ebd211ed6038d84
Author: Lucas Alvares Gomes <email address hidden>
Date: Fri Sep 11 16:39:46 2015 +0100

    Fix docs about --is-public parameter for glance image-create

    The glance CLI now defaults to the v2 API which has a non-binary
    visibility field, therefor the "--is-public" parameter has been removed
    and "--visibility public/private" should be used instead (Note: the
    --container-format parameter is required now as well).

    Closes-Bug: #1494807
    Change-Id: I7d0c9d8cfce3e799bd7d5c4eedc393a8fc7c94be

Changed in ironic:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in ironic:
milestone: none → 4.2.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.