This bug was initially created as a copy of Bug #1871165 Description of problem: When we cinder manage a volume to set the host, it will be blocked by the regex validation when it's IPv6 because brackets are not included in the regex pattern. I believe this could be fixed by adding the brackets to this pattern [a]. Asking the customer to test and will submit a patch upstream if it works. Additional info: [a] https://opendev.org/openstack/cinder/src/branch/master/cinder/api/validation/parameter_types.py#L232 [1] ~~~ DEBUG (shell:1025) Invalid input for field/attribute host. Value: hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01. 'hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01' does not match '^[a-zA-Z0-9-._#@:/+]*$' (HTTP 400) (Request-ID: req-2aafd9a5-3f3e-44cd-9e97-e9391636822f) Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/cinderclient/shell.py", line 1017, in main OpenStackCinderShell().main(sys.argv[1:]) File "/usr/lib/python3.6/site-packages/cinderclient/shell.py", line 790, in main args.func(self.cs, args) File "/usr/lib/python3.6/site-packages/cinderclient/v3/shell.py", line 1265, in do_manage cluster=getattr(args, 'cluster', None)) File "/usr/lib/python3.6/site-packages/cinderclient/v3/volumes.py", line 247, in manage return self._create('/os-volume-manage', body, 'volume') File "/usr/lib/python3.6/site-packages/cinderclient/base.py", line 302, in _create resp, body = self.api.client.post(url, body=body) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 217, in post return self._cs_request(url, 'POST', **kwargs) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 205, in _cs_request return self.request(url, method, **kwargs) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 191, in request raise exceptions.from_response(resp, body) cinderclient.exceptions.BadRequest: Invalid input for field/attribute host. Value: hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01. 'hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01' does not match '^[a-zA-Z0-9-._#@:/+]*$' (HTTP 400) (Request-ID: req-2aafd9a5-3f3e-44cd-9e97-e9391636822f) DEBUG:cinderclient.shell:Invalid input for field/attribute host. Value: hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01. 'hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01' does not match '^[a-zA-Z0-9-._#@:/+]*$' (HTTP 400) (Request-ID: req-2aafd9a5-3f3e-44cd-9e97-e9391636822f) Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/cinderclient/shell.py", line 1017, in main OpenStackCinderShell().main(sys.argv[1:]) File "/usr/lib/python3.6/site-packages/cinderclient/shell.py", line 790, in main args.func(self.cs, args) File "/usr/lib/python3.6/site-packages/cinderclient/v3/shell.py", line 1265, in do_manage cluster=getattr(args, 'cluster', None)) File "/usr/lib/python3.6/site-packages/cinderclient/v3/volumes.py", line 247, in manage return self._create('/os-volume-manage', body, 'volume') File "/usr/lib/python3.6/site-packages/cinderclient/base.py", line 302, in _create resp, body = self.api.client.post(url, body=body) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 217, in post return self._cs_request(url, 'POST', **kwargs) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 205, in _cs_request return self.request(url, method, **kwargs) File "/usr/lib/python3.6/site-packages/cinderclient/client.py", line 191, in request raise exceptions.from_response(resp, body) cinderclient.exceptions.BadRequest: Invalid input for field/attribute host. Value: hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01. 'hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01' does not match '^[a-zA-Z0-9-._#@:/+]*$' (HTTP 400) (Request-ID: req-2aafd9a5-3f3e-44cd-9e97-e9391636822f) ERROR: Invalid input for field/attribute host. Value: hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01. 'hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01' does not match '^[a-zA-Z0-9-._#@:/+]*$' (HTTP 400) (Request-ID: req-2aafd9a5-3f3e-44cd-9e97-e9391636822f) ~~~
Target release was missing 16.2.
Second attempt at resetting target release for 16.2, this time adding target milestone, hope Alpha is correct one.
Verified on: openstack-cinder-15.6.1-2.20210528143330.574221a.el8ost.1.noarch For testing I'll reuse the same original bogus IPv6 nfs share. As seen below we successfully managed a bogus IPv6 host/volume, without getting any "Invalid input for field/attribute host. ...does not match '^[a-zA-Z0-9-._#@:/+]*$'" Ignoring volume's error status as it's bogus, we're good to verify. (overcloud) [stack@undercloud-0 ~]$ cinder --debug manage --id-type source-name --name ssbench-vim2-2 "hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01" 3e5e3852-fe19-49f3-b841-41ec1c69c6bc DEBUG:keystoneauth.session:REQ: curl -g -i -X GET http://10.0.0.106:5000 -H "Accept: application/json" -H "User-Agent: cinder keystoneauth1/3.17.4 python-requests/2.20.0 CPython/3.6.8" DEBUG:keystoneauth.session:RESP: [300] Content-Length: 265 Content-Type: application/json Date: Tue, 13 Jul 2021 07:20:59 GMT Location: http://10.0.0.106:5000/v3/ Server: Apache Vary: X-Auth-Token x-openstack-request-id: req-df0e1306-a5bc-46da-aea3-cf75705b804e DEBUG:keystoneauth.session:RESP BODY: {"versions": {"values": [{"id": "v3.13", "status": "stable", "updated": "2019-07-19T00:00:00Z", "links": [{"rel": "self", "href": "http://10.0.0.106:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}]}} DEBUG:keystoneauth.session:GET call to http://10.0.0.106:5000/ used request id req-df0e1306-a5bc-46da-aea3-cf75705b804e DEBUG:keystoneauth.identity.v3.base:Making authentication request to http://10.0.0.106:5000/v3/auth/tokens DEBUG:keystoneauth.identity.v3.base:{"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "0dea1769d97d40aca63a1fe8445bbdfb", "name": "admin", "password_expires_at": null}, "audit_ids": ["6GV6izZtQgGKhwxMb_dz9Q"], "expires_at": "2021-07-13T08:21:00.000000Z", "issued_at": "2021-07-13T07:21:00.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "5f3929cb9abc4e8ab98ba501d6818adb", "name": "admin"}, "is_domain": false, "roles": [{"id": "d79f11f8d4634332b1d943eeb88c0aab", "name": "admin"}, {"id": "2876de4830e247d5bfbfde2cc4936246", "name": "reader"}, {"id": "c5794adf69774f879275d27a2c09ebd2", "name": "member"}], "catalog": [{"endpoints": [{"id": "3c95e6a1474549a4abadbd2262e7a2e2", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8000/v1", "region": "regionOne"}, {"id": "d8723881283e45239d7bd86df297ca61", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8000/v1", "region": "regionOne"}, {"id": "ebb33a9b97204872900d92c51848282a", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8000/v1", "region": "regionOne"}], "id": "03a41bbada504b4895ee39a642921a57", "type": "cloudformation", "name": "heat-cfn"}, {"endpoints": [{"id": "2b7677f793ff4d1cb012a7f35ef6848b", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.3.49:8080/v1/AUTH_5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "81f65de836eb44d9a025086f88b2871c", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.3.49:8080", "region": "regionOne"}, {"id": "a30d0efad54c4945914b3a457f77f0a0", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8080/v1/AUTH_5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}], "id": "04b9f876fd9d4b0e8700cdd95e4f85db", "type": "object-store", "name": "swift"}, {"endpoints": [{"id": "0673878094b143baa41f31b755cf4524", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8004/v1/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "b58ca7a7c8cc4eb2812830b424daab63", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8004/v1/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "fbbdb4d0c5a944b1bfe64695cfb7dff0", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8004/v1/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}], "id": "5c2cd517024f40a18e7ce9c116e705c3", "type": "orchestration", "name": "heat"}, {"endpoints": [{"id": "153d44f62d724a3db58f5c17c194bc94", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8776/v2/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "78fe299e942844afbdd96a7084510bcb", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8776/v2/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "ccd64677f396413ca75d2f17904af5e1", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8776/v2/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}], "id": "6c2b26d8744f4bd1af41b4676672efe2", "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"id": "217735c8a8ec4765af89e288a93ceaba", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8778/placement", "region": "regionOne"}, {"id": "341ccc8e3b07442f99c41fd404dabe83", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8778/placement", "region": "regionOne"}, {"id": "9be97e2e90294d5e959e2df7f1dd9419", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8778/placement", "region": "regionOne"}], "id": "6f002d793465431d8ff1cdb7167e2c49", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "91f918c4fe0d4170af4ab06e1ce18bdb", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:9696", "region": "regionOne"}, {"id": "a9ff42e1db9a454bb3254d984825f4c4", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:9696", "region": "regionOne"}, {"id": "bff2d1b4403447c28f87b0afb2bbb53e", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:9696", "region": "regionOne"}], "id": "7cd6151368b9457a97be686bfc312847", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "2dbbde432ff04e16a90222095d96af06", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:5000", "region": "regionOne"}, {"id": "4c0feae37ab34025b91a65dd5c422c33", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:5000", "region": "regionOne"}, {"id": "6926d01400ec464eba7a970227dadf18", "interface": "admin", "region_id": "regionOne", "url": "http://192.168.24.42:35357", "region": "regionOne"}], "id": "8a88e9f0d2bb4f0a8819acedee3072ce", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "9c29b9d80ea84be69a4bd40a741cbdf0", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "a59798efcbcf42c59e3db2133f84a42f", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}, {"id": "abde02f4685d4ed3ae1ce30e3940d354", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb", "region": "regionOne"}], "id": "95b4f579a6cc4ec68224be8f347760dd", "type": "volumev3", "name": "cinderv3"}, {"endpoints": [{"id": "0fcc301e17aa4c6391aae46b8f8563ab", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:9292", "region": "regionOne"}, {"id": "7b1ab01868e146f78926b44b6461a7b7", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:9292", "region": "regionOne"}, {"id": "b3af72276ca04b0cad49a0f45e547eda", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:9292", "region": "regionOne"}], "id": "e20076e03eb14085bfb22b309eda344d", "type": "image", "name": "glance"}, {"endpoints": [{"id": "583367e8ca7345ba9ed77087cd20e188", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:9311", "region": "regionOne"}, {"id": "6106831f94bd4210b0d9c0e2e1b0edbc", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:9311", "region": "regionOne"}, {"id": "e2f9c9c8b15544ceb36c824eaf0fb73a", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:9311", "region": "regionOne"}], "id": "fd5b8be0e1da444aafbfc33bdf65ec92", "type": "key-manager", "name": "barbican"}, {"endpoints": [{"id": "20472eb4669f4b0d86cc973ebf118b88", "interface": "public", "region_id": "regionOne", "url": "http://10.0.0.106:8774/v2.1", "region": "regionOne"}, {"id": "8580393bb67343d9b15eb46766d7afa3", "interface": "internal", "region_id": "regionOne", "url": "http://172.17.1.132:8774/v2.1", "region": "regionOne"}, {"id": "cbc942c57fb547a4a9ea4b10a016c782", "interface": "admin", "region_id": "regionOne", "url": "http://172.17.1.132:8774/v2.1", "region": "regionOne"}], "id": "ff3dbd7d0e0441129440aa764333aef5", "type": "compute", "name": "nova"}]}} DEBUG:keystoneauth:REQ: curl -g -i -X GET http://10.0.0.106:8776/ -H "Accept: application/json" -H "OpenStack-API-Version: volume 3.59" -H "User-Agent: python-cinderclient" -H "X-Auth-Token: {SHA256}6cd132506fd2636414c07df3855f82ca0841787dc4225d4cf03b970615eeab52" DEBUG:keystoneauth:RESP: [300] Content-Length: 748 Content-Type: application/json Date: Tue, 13 Jul 2021 07:21:00 GMT OpenStack-API-Version: volume 3.0 Server: Apache Vary: OpenStack-API-Version DEBUG:keystoneauth:RESP BODY: {"versions": [{"id": "v2.0", "status": "DEPRECATED", "version": "", "min_version": "", "updated": "2017-02-25T12:00:00Z", "links": [{"rel": "describedby", "type": "text/html", "href": "https://docs.openstack.org/"}, {"rel": "self", "href": "http://10.0.0.106:8776/v2/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.volume+json;version=2"}]}, {"id": "v3.0", "status": "CURRENT", "version": "3.59", "min_version": "3.0", "updated": "2018-07-17T00:00:00Z", "links": [{"rel": "describedby", "type": "text/html", "href": "https://docs.openstack.org/"}, {"rel": "self", "href": "http://10.0.0.106:8776/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.volume+json;version=3"}]}]} DEBUG:keystoneauth:REQ: curl -g -i -X POST http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/os-volume-manage -H "Accept: application/json" -H "Content-Type: application/json" -H "User-Agent: python-cinderclient" -H "X-Auth-Token: {SHA256}6cd132506fd2636414c07df3855f82ca0841787dc4225d4cf03b970615eeab52" -d '{"volume": {"host": "hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01", "ref": {"source-name": "3e5e3852-fe19-49f3-b841-41ec1c69c6bc"}, "name": "ssbench-vim2-2", "description": null, "volume_type": null, "availability_zone": null, "metadata": null, "bootable": false}}' DEBUG:keystoneauth:RESP: [202] Content-Length: 804 Content-Type: application/json Date: Tue, 13 Jul 2021 07:21:00 GMT OpenStack-API-Version: volume 3.0 Server: Apache Vary: OpenStack-API-Version x-compute-request-id: req-716974c9-a19a-4446-9b93-6dc6b26dadd6 x-openstack-request-id: req-716974c9-a19a-4446-9b93-6dc6b26dadd6 DEBUG:keystoneauth:RESP BODY: {"volume": {"id": "fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287", "status": "creating", "size": 0, "availability_zone": "nova", "created_at": "2021-07-13T07:21:00.899179", "updated_at": null, "attachments": [], "name": "ssbench-vim2-2", "description": null, "volume_type": "tripleo", "snapshot_id": null, "source_volid": null, "metadata": {}, "links": [{"rel": "self", "href": "http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287"}, {"rel": "bookmark", "href": "http://10.0.0.106:8776/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287"}], "user_id": "0dea1769d97d40aca63a1fe8445bbdfb", "bootable": "false", "encrypted": false, "replication_status": null, "consistencygroup_id": null, "multiattach": false, "migration_status": null}} DEBUG:keystoneauth:POST call to volumev3 for http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/os-volume-manage used request id req-716974c9-a19a-4446-9b93-6dc6b26dadd6 DEBUG:keystoneauth:REQ: curl -g -i -X GET http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287 -H "Accept: application/json" -H "User-Agent: python-cinderclient" -H "X-Auth-Token: {SHA256}6cd132506fd2636414c07df3855f82ca0841787dc4225d4cf03b970615eeab52" -H "X-OpenStack-Request-ID: req-716974c9-a19a-4446-9b93-6dc6b26dadd6" DEBUG:keystoneauth:RESP: [200] Content-Encoding: gzip Content-Type: application/json Date: Tue, 13 Jul 2021 07:21:01 GMT OpenStack-API-Version: volume 3.0 Server: Apache Transfer-Encoding: chunked Vary: OpenStack-API-Version,Accept-Encoding x-compute-request-id: req-621d267d-534a-43c4-93ff-c47ecea0f27d x-openstack-request-id: req-621d267d-534a-43c4-93ff-c47ecea0f27d DEBUG:keystoneauth:RESP BODY: {"volume": {"id": "fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287", "status": "error", "size": 0, "availability_zone": "nova", "created_at": "2021-07-13T07:21:00.000000", "updated_at": "2021-07-13T07:21:00.000000", "attachments": [], "name": "ssbench-vim2-2", "description": null, "volume_type": "tripleo", "snapshot_id": null, "source_volid": null, "metadata": {}, "links": [{"rel": "self", "href": "http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287"}, {"rel": "bookmark", "href": "http://10.0.0.106:8776/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287"}], "user_id": "0dea1769d97d40aca63a1fe8445bbdfb", "bootable": "false", "encrypted": false, "replication_status": null, "consistencygroup_id": null, "multiattach": false, "migration_status": null, "os-vol-tenant-attr:tenant_id": "5f3929cb9abc4e8ab98ba501d6818adb", "os-vol-mig-status-attr:migstat": null, "os-vol-mig-status-attr:name_id": null, "os-vol-host-attr:host": "hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01"}} DEBUG:keystoneauth:GET call to volumev3 for http://10.0.0.106:8776/v3/5f3929cb9abc4e8ab98ba501d6818adb/volumes/fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287 used request id req-621d267d-534a-43c4-93ff-c47ecea0f27d +--------------------------------+-------------------------------------------------------------+ | Property | Value | +--------------------------------+-------------------------------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2021-07-13T07:21:00.000000 | | description | None | | encrypted | False | | id | fa0f23e7-b80d-4b7f-9e6d-736f3cf7c287 | | metadata | {} | | migration_status | None | | multiattach | False | | name | ssbench-vim2-2 | | os-vol-host-attr:host | hostgroup@tripleo_netapp#[dead:beef::cafe]:/remus_cinder_01 | | os-vol-mig-status-attr:migstat | None | | os-vol-mig-status-attr:name_id | None | | os-vol-tenant-attr:tenant_id | 5f3929cb9abc4e8ab98ba501d6818adb | | replication_status | None | | size | 0 | | snapshot_id | None | | source_volid | None | | status | error | | updated_at | 2021-07-13T07:21:00.000000 | | user_id | 0dea1769d97d40aca63a1fe8445bbdfb | | volume_type | tripleo | +--------------------------------+-------------------------------------------------------------+
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2021:3483