← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1574512] [NEW] python-glanceclient doesn't support $HOME while uploading image

 

Public bug reported:

~/devstack$ glance --debug image-create --name ubuntu-16 --visibility public --disk-format=qcow2 --container-format=bare \--os-distro=ubuntu --file=~/Downloads/xenial-server-cloudimg-amd64-disk1.img
File ~/Downloads/xenial-server-cloudimg-amd64-disk1.img does not exist or user does not have read privileges to it

~/devstack$ glance image-create --name ubuntu-16 --visibility public --disk-format=qcow2 --container-format=bare \--os-distro=ubuntu --file=/home/user/Downloads/xenial-server-cloudimg-amd64-disk1.img
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | b27130a877734d9ec938a63ca63c4ee7     |
| container_format | bare                                 |
| created_at       | 2016-04-25T08:38:29Z                 |
| disk_format      | qcow2                                |
| id               | 22bc8d04-c77b-4780-b6bb-1a37f11d6deb |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | ubuntu-16                            |
| os_distro        | ubuntu                               |
| owner            | 959eedbf87534e28a64f94c250b785ac     |
| protected        | False                                |
| size             | 303235072                            |
| status           | active                               |
| tags             | []                                   |
| updated_at       | 2016-04-25T08:38:32Z                 |
| virtual_size     | None                                 |
| visibility       | public                               |
+------------------+--------------------------------------+

** Affects: python-glanceclient
     Importance: Undecided
         Status: New

** Project changed: glance => python-glanceclient

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1574512

Title:
  python-glanceclient doesn't support $HOME while uploading image

Status in python-glanceclient:
  New

Bug description:
  ~/devstack$ glance --debug image-create --name ubuntu-16 --visibility public --disk-format=qcow2 --container-format=bare \--os-distro=ubuntu --file=~/Downloads/xenial-server-cloudimg-amd64-disk1.img
  File ~/Downloads/xenial-server-cloudimg-amd64-disk1.img does not exist or user does not have read privileges to it

  ~/devstack$ glance image-create --name ubuntu-16 --visibility public --disk-format=qcow2 --container-format=bare \--os-distro=ubuntu --file=/home/user/Downloads/xenial-server-cloudimg-amd64-disk1.img
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | b27130a877734d9ec938a63ca63c4ee7     |
  | container_format | bare                                 |
  | created_at       | 2016-04-25T08:38:29Z                 |
  | disk_format      | qcow2                                |
  | id               | 22bc8d04-c77b-4780-b6bb-1a37f11d6deb |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | ubuntu-16                            |
  | os_distro        | ubuntu                               |
  | owner            | 959eedbf87534e28a64f94c250b785ac     |
  | protected        | False                                |
  | size             | 303235072                            |
  | status           | active                               |
  | tags             | []                                   |
  | updated_at       | 2016-04-25T08:38:32Z                 |
  | virtual_size     | None                                 |
  | visibility       | public                               |
  +------------------+--------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-glanceclient/+bug/1574512/+subscriptions