STX-Openstack: Failed to create volume with --image flag
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| StarlingX |
Fix Released
|
Low
|
Rafael Falcão | ||
Bug Description
Brief Description
-----------------
Volumes are failing to be created with the --image flag. If this flag is not set, the volume is able to be created.
Severity
--------
Minor: System/Feature is usable with minor issue
Steps to Reproduce
------------------
Create a volume by setting the --image flag with any image
Expected Behavior
------------------
Volume is created
Actual Behavior
----------------
Volume fails to be created
Reproducibility
---------------
Seen once
System Configuration
-------
Bare metal AIO-DX
Branch/Pull Time/Commit
-------
https:/
Last Pass
---------
N/A
Timestamp/Logs
--------------
openstack --os-username 'tenant1' --os-password 'Li69nux*' --os-project-name tenant1 --os-auth-url http://
+------
| Field | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | true |
| consistencygroup_id | None |
| created_at | 2023-03-
| description | None |
| encrypted | False |
| id | a0eae798-
| multiattach | False |
| name | vol_inst1-6 |
| os-vol-
| properties | |
| replication_status | None |
| size | 8 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| type | ceph-store |
| updated_at | 2023-03-
| user_id | c61a798d6178409
+------
Test Activity
-------------
Regression Testing
Workaround
----------
N/A
| summary: |
- STX-Openstack: Failed to create volume with --bootable flag + STX-Openstack: Failed to create volume with --image flag |
| Changed in starlingx: | |
| assignee: | nobody → Rafael Falcão (rafaelvfalc) |
| Changed in starlingx: | |
| status: | New → In Progress |
| tags: | added: stx.9.0 |
| Changed in starlingx: | |
| importance: | Undecided → Low |

Reviewed: https:/ /review. opendev. org/c/starlingx /upstream/ +/880772 /opendev. org/starlingx/ upstream/ commit/ 7f23ac77b664173 4b8e0819351d364 2da9e3deb7
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 7f23ac77b664173 4b8e0819351d364 2da9e3deb7
Author: Rafael Falcao <email address hidden>
Date: Tue Apr 18 15:09:54 2023 -0300
Add PROJECT_UID and PROJECT_GID specification to stx-cinder
This review intends to solve a id conflict between the
cinder user and the keystone user (added on [1]). The
keystone user is attached with the id 42424, same as
the cinder user. This conflict is making volume related
commands to fail due permissions of the user (because it
is trying to execute the commands as keystone user, not
cinder).
[1] https:/ /review. opendev. org/c/starlingx /integ/ +/854246
Test plan:
PASS - Check the /etc/passwd file to see that the user
'cinder' in the cinder container changed its id
from 42424 to 42425.
Partial-Bug: 2012392
Signed-off-by: Rafael Falcao <email address hidden> dfd03fcc681aba8 a13b4c3445f
Change-Id: I29bba77beb0e63