Activity log for bug #1956724

Date Who What changed Old value New value Message
2022-01-07 08:38:16 luffy Wong bug added bug
2022-01-07 08:47:02 luffy Wong description when I try to create a segment,I get an error "Request requires an ID but none was found". Here is the debug info when excute "openstack segment create segment1 auto COMPUTE --debug" [root@szpldcont01 masakari]# openstack segment create segment1 auto COMPUTE --debug START with options: segment create segment1 auto COMPUTE --debug options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_methods='', auth_type='', auth_url='http://192.168.21.244:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='public', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_dns_api_version='2', os_ha_api_version='1.2', os_identity_api_version='3', os_image_api_version='', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} defaults: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'auth_type': 'password', 'baremetal_status_code_retries': 5, 'baremetal_introspection_status_code_retries': 5, 'image_status_code_retries': 5, 'disable_vendor_agent': {}, 'interface': None, 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active'} cloud cfg: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} compute API version 2.1, cmd group openstack.compute.v2 identity API version 3, cmd group openstack.identity.v3 image API version 2, cmd group openstack.image.v2 network API version 2, cmd group openstack.network.v2 object_store API version 1, cmd group openstack.object_store.v1 volume API version 3, cmd group openstack.volume.v3 ha API version 1.2, cmd group openstack.ha.v1 neutronclient API version 2, cmd group openstack.neutronclient.v2 /usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead. % (name, name, name)) key_manager API version 1, cmd group openstack.key_manager.v1 dns API version 2, cmd group openstack.dns.v2 command: segment create -> masakariclient.osc.v1.segment.CreateSegment (auth=True) Auth plugin password selected auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'additional_user_agent': [('osc-lib', '2.2.1')], 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} Using auth plugin: password Using parameters {'auth_url': 'http://192.168.21.244:5000/v3', 'project_name': 'admin', 'project_domain_name': 'Default', 'username': 'admin', 'user_domain_name': 'Default', 'password': '***'} Get auth_ref REQ: curl -g -i -X GET http://192.168.21.244:5000/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" Starting new HTTP connection (1): 192.168.21.244:5000 http://192.168.21.244:5000 "GET /v3 HTTP/1.1" 200 254 RESP: [200] Connection: Keep-Alive Content-Length: 254 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT Keep-Alive: timeout=5, max=100 Server: Apache/2.4.37 (centos) mod_wsgi/4.6.4 Python/3.6 Vary: X-Auth-Token x-openstack-request-id: req-d54cae68-f2e7-4735-a426-00fc98cfdcf8 RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://192.168.21.244:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}} GET call to http://192.168.21.244:5000/v3 used request id req-d54cae68-f2e7-4735-a426-00fc98cfdcf8 Making authentication request to http://192.168.21.244:5000/v3/auth/tokens http://192.168.21.244:5000 "POST /v3/auth/tokens HTTP/1.1" 201 5516 {"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "e0f9bce73de64b81b60030bcc3a915b2", "name": "admin", "password_expires_at": null}, "audit_ids": ["T1ttEG13R-KJOiv2cb8vdw"], "expires_at": "2022-01-14T08:07:18.000000Z", "issued_at": "2022-01-07T08:07:18.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "60f22841495b46099a67118bb88cc2d8", "name": "admin"}, "is_domain": false, "roles": [{"id": "3e4ffd16c4d4492aad98f89696b971a9", "name": "admin"}, {"id": "60fac1b3f3964a3fb83517e243657ed2", "name": "reader"}, {"id": "6c5eac7cc55847cfb0ca7e0188721dc6", "name": "member"}], "catalog": [{"endpoints": [{"id": "720af02a08af4880ae80c91af53a9440", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}, {"id": "8826acfdd05e4ae38ed7f5ea8961557c", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}, {"id": "f1440f1d8ec245329ec32955f2b09e12", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}], "id": "11d208474fda41f1b4885e7b11108b9f", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "232f8620df4f4007adab9bda6494bd19", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}, {"id": "48aa5305b8634a66940a456bc7320bd0", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}, {"id": "4ef6bf4ad1be4b2bb6d66a2643f07ba8", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}], "id": "1ca92e2b6695429081fc63e6ecef9673", "type": "image", "name": "glance"}, {"endpoints": [{"id": "5539e600ad2149728b4f7991d6648907", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "7ffdd5476e8e470aa6f54a142937a680", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "ebeb0623db87434685d1bbb264c5eabe", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "35765babd2144e29aef9a930e0b425bc", "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"id": "3b6eddc524e7401f9947d94f2c0bdbeb", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "656a990ac12045bba1625b3c5c3961e5", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "738d85f311604482b20d44f2e795db1d", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "8283153dc08343d3868bf883b13e7caa", "type": "instance-ha", "name": "masakari"}, {"endpoints": [{"id": "2f985095ec87441aa5e3ba752b2dba71", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}, {"id": "a0dcc03bb2f64e22bfabebe1f1aeeb25", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}, {"id": "a7967fe2fd57480192e4ec9eb9b269bc", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}], "id": "89d1f73ca2d14de4908ec3514a0835ee", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "15083488b6a740fca276a4edd106fee8", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}, {"id": "95673e4eafc444e9bb41b23daa8b6b68", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}, {"id": "c8c1bda260b24515b47bc204e8790ba0", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}], "id": "9afd1f1ef88a4a1ebc78a8337220c1ad", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "3995644183014fb2bb1e0e46ed2edc3a", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}, {"id": "a40fdebe7aec4b41a7d31df766bc2777", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}, {"id": "eaa3f8f2460a4412a4fd86325835b35f", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}], "id": "bb186dec9a7f46c98945e9c227377dd5", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "1e48cb9ed757403cad4f66e1b8dad155", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "d53def03d2024244af2bf5262c50a9c6", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "f0c05a3ee31241b1831f064a05b0bb93", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "ed25528b25a04a478a52af84ebdbbc2e", "type": "volumev3", "name": "cinderv3"}]}} run(Namespace(columns=[], description=None, fit_width=False, formatter='table', is_enabled=None, max_width=0, name='segment1', noindent=False, prefix='', print_empty=False, recovery_method='auto', service_type='COMPUTE', variables=[])) Instantiating masakari service client REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" Starting new HTTP connection (1): 192.168.21.236:15868 http://192.168.21.236:15868 "GET /instance-ha/v1 HTTP/1.1" 300 243 RESP: [300] Connection: keep-alive Content-Length: 243 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1/60f22841495b46099a67118bb88cc2d8 HTTP/1.1" 300 276 RESP: [300] Connection: keep-alive Content-Length: 276 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1 HTTP/1.1" 300 243 RESP: [300] Connection: keep-alive Content-Length: 243 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1/60f22841495b46099a67118bb88cc2d8 HTTP/1.1" 300 276 RESP: [300] Connection: keep-alive Content-Length: 276 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X POST http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments -H "Content-Type: application/json" -H "OpenStack-API-Version: instance-ha 1.2" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" -H "X-Auth-Token: {SHA256}73c91da75a635750fe20ec5bb806d5824ab39c40b8d850aebd6f89b0850da18b" -d '{"segment": {"recovery_method": "auto", "service_type": "COMPUTE", "name": "segment1"}}' http://192.168.21.236:15868 "POST /instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments HTTP/1.1" 300 285 RESP: [300] Connection: keep-alive Content-Length: 285 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} Request requires an ID but none was found Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/cliff/app.py", line 400, in run_subcommand result = cmd.run(parsed_args) File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run return super(Command, self).run(parsed_args) File "/usr/lib/python3.6/site-packages/cliff/display.py", line 117, in run column_names, data = self.take_action(parsed_args) File "/usr/local/lib/python3.6/site-packages/masakariclient/osc/v1/segment.py", line 169, in take_action segment.uuid) File "/usr/local/lib/python3.6/site-packages/masakariclient/osc/v1/segment.py", line 277, in _show_segment segment = masakari_client.get_segment(segment_uuid) File "/usr/lib/python3.6/site-packages/openstack/instance_ha/v1/_proxy.py", line 86, in get_segment return self._get(_segment.Segment, segment) File "/usr/lib/python3.6/site-packages/openstack/proxy.py", line 47, in check return method(self, expected, actual, *args, **kwargs) File "/usr/lib/python3.6/site-packages/openstack/proxy.py", line 509, in _get resource_type=resource_type.__name__, value=value)) File "/usr/lib/python3.6/site-packages/openstack/resource.py", line 1406, in fetch base_path=base_path) File "/usr/lib/python3.6/site-packages/openstack/resource.py", line 1092, in _prepare_request "Request requires an ID but none was found") openstack.exceptions.InvalidRequest: Request requires an ID but none was found clean_up CreateSegment: Request requires an ID but none was found when I try to create a segment,I get an error "Request requires an ID but none was found". env info: OS release: CentOS Linux release 8.5.2111 Openstack version:openstack-victoria masakariclient version: python-masakariclient-stable-victoria Here is the debug info when excute "openstack segment create segment1 auto COMPUTE --debug" [root@szpldcont01 masakari]# openstack segment create segment1 auto COMPUTE --debug START with options: segment create segment1 auto COMPUTE --debug options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_methods='', auth_type='', auth_url='http://192.168.21.244:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='public', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_dns_api_version='2', os_ha_api_version='1.2', os_identity_api_version='3', os_image_api_version='', os_key_manager_api_version='1', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None) Auth plugin password selected auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} defaults: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'auth_type': 'password', 'baremetal_status_code_retries': 5, 'baremetal_introspection_status_code_retries': 5, 'image_status_code_retries': 5, 'disable_vendor_agent': {}, 'interface': None, 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active'} cloud cfg: {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} compute API version 2.1, cmd group openstack.compute.v2 identity API version 3, cmd group openstack.identity.v3 image API version 2, cmd group openstack.image.v2 network API version 2, cmd group openstack.network.v2 object_store API version 1, cmd group openstack.object_store.v1 volume API version 3, cmd group openstack.volume.v3 ha API version 1.2, cmd group openstack.ha.v1 neutronclient API version 2, cmd group openstack.neutronclient.v2 /usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.   % (name, name, name)) key_manager API version 1, cmd group openstack.key_manager.v1 dns API version 2, cmd group openstack.dns.v2 command: segment create -> masakariclient.osc.v1.segment.CreateSegment (auth=True) Auth plugin password selected auth_config_hook(): {'api_timeout': None, 'verify': True, 'cacert': None, 'cert': None, 'key': None, 'baremetal_status_code_retries': '5', 'baremetal_introspection_status_code_retries': '5', 'image_status_code_retries': '5', 'disable_vendor_agent': {}, 'interface': 'public', 'floating_ip_source': 'neutron', 'image_api_use_tasks': False, 'image_format': 'qcow2', 'message': '', 'network_api_version': '2', 'object_store_api_version': '1', 'secgroup_source': 'neutron', 'status': 'active', 'auth': {'user_domain_name': 'Default', 'project_domain_name': 'Default', 'project_name': 'admin'}, 'additional_user_agent': [('osc-lib', '2.2.1')], 'verbose_level': 3, 'deferred_help': False, 'debug': True, 'default_domain': 'default', 'timing': False, 'auth_url': 'http://192.168.21.244:5000/v3', 'username': 'admin', 'password': '***', 'beta_command': False, 'identity_api_version': '3', 'ha_api_version': '1.2', 'key_manager_api_version': '1', 'dns_api_version': '2', 'region_name': '', 'auth_type': 'password', 'networks': []} Using auth plugin: password Using parameters {'auth_url': 'http://192.168.21.244:5000/v3', 'project_name': 'admin', 'project_domain_name': 'Default', 'username': 'admin', 'user_domain_name': 'Default', 'password': '***'} Get auth_ref REQ: curl -g -i -X GET http://192.168.21.244:5000/v3 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" Starting new HTTP connection (1): 192.168.21.244:5000 http://192.168.21.244:5000 "GET /v3 HTTP/1.1" 200 254 RESP: [200] Connection: Keep-Alive Content-Length: 254 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT Keep-Alive: timeout=5, max=100 Server: Apache/2.4.37 (centos) mod_wsgi/4.6.4 Python/3.6 Vary: X-Auth-Token x-openstack-request-id: req-d54cae68-f2e7-4735-a426-00fc98cfdcf8 RESP BODY: {"version": {"id": "v3.14", "status": "stable", "updated": "2020-04-07T00:00:00Z", "links": [{"rel": "self", "href": "http://192.168.21.244:5000/v3/"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}]}} GET call to http://192.168.21.244:5000/v3 used request id req-d54cae68-f2e7-4735-a426-00fc98cfdcf8 Making authentication request to http://192.168.21.244:5000/v3/auth/tokens http://192.168.21.244:5000 "POST /v3/auth/tokens HTTP/1.1" 201 5516 {"token": {"methods": ["password"], "user": {"domain": {"id": "default", "name": "Default"}, "id": "e0f9bce73de64b81b60030bcc3a915b2", "name": "admin", "password_expires_at": null}, "audit_ids": ["T1ttEG13R-KJOiv2cb8vdw"], "expires_at": "2022-01-14T08:07:18.000000Z", "issued_at": "2022-01-07T08:07:18.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "60f22841495b46099a67118bb88cc2d8", "name": "admin"}, "is_domain": false, "roles": [{"id": "3e4ffd16c4d4492aad98f89696b971a9", "name": "admin"}, {"id": "60fac1b3f3964a3fb83517e243657ed2", "name": "reader"}, {"id": "6c5eac7cc55847cfb0ca7e0188721dc6", "name": "member"}], "catalog": [{"endpoints": [{"id": "720af02a08af4880ae80c91af53a9440", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}, {"id": "8826acfdd05e4ae38ed7f5ea8961557c", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}, {"id": "f1440f1d8ec245329ec32955f2b09e12", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.244:8778", "region": "RegionOne"}], "id": "11d208474fda41f1b4885e7b11108b9f", "type": "placement", "name": "placement"}, {"endpoints": [{"id": "232f8620df4f4007adab9bda6494bd19", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}, {"id": "48aa5305b8634a66940a456bc7320bd0", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}, {"id": "4ef6bf4ad1be4b2bb6d66a2643f07ba8", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.245:9292", "region": "RegionOne"}], "id": "1ca92e2b6695429081fc63e6ecef9673", "type": "image", "name": "glance"}, {"endpoints": [{"id": "5539e600ad2149728b4f7991d6648907", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "7ffdd5476e8e470aa6f54a142937a680", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "ebeb0623db87434685d1bbb264c5eabe", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v2/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "35765babd2144e29aef9a930e0b425bc", "type": "volumev2", "name": "cinderv2"}, {"endpoints": [{"id": "3b6eddc524e7401f9947d94f2c0bdbeb", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "656a990ac12045bba1625b3c5c3961e5", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "738d85f311604482b20d44f2e795db1d", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "8283153dc08343d3868bf883b13e7caa", "type": "instance-ha", "name": "masakari"}, {"endpoints": [{"id": "2f985095ec87441aa5e3ba752b2dba71", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}, {"id": "a0dcc03bb2f64e22bfabebe1f1aeeb25", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}, {"id": "a7967fe2fd57480192e4ec9eb9b269bc", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.244:5000/v3/", "region": "RegionOne"}], "id": "89d1f73ca2d14de4908ec3514a0835ee", "type": "identity", "name": "keystone"}, {"endpoints": [{"id": "15083488b6a740fca276a4edd106fee8", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}, {"id": "95673e4eafc444e9bb41b23daa8b6b68", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}, {"id": "c8c1bda260b24515b47bc204e8790ba0", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.248:9696", "region": "RegionOne"}], "id": "9afd1f1ef88a4a1ebc78a8337220c1ad", "type": "network", "name": "neutron"}, {"endpoints": [{"id": "3995644183014fb2bb1e0e46ed2edc3a", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}, {"id": "a40fdebe7aec4b41a7d31df766bc2777", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}, {"id": "eaa3f8f2460a4412a4fd86325835b35f", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.247:8774/v2.1", "region": "RegionOne"}], "id": "bb186dec9a7f46c98945e9c227377dd5", "type": "compute", "name": "nova"}, {"endpoints": [{"id": "1e48cb9ed757403cad4f66e1b8dad155", "interface": "public", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "d53def03d2024244af2bf5262c50a9c6", "interface": "internal", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}, {"id": "f0c05a3ee31241b1831f064a05b0bb93", "interface": "admin", "region_id": "RegionOne", "url": "http://192.168.21.249:8776/v3/60f22841495b46099a67118bb88cc2d8", "region": "RegionOne"}], "id": "ed25528b25a04a478a52af84ebdbbc2e", "type": "volumev3", "name": "cinderv3"}]}} run(Namespace(columns=[], description=None, fit_width=False, formatter='table', is_enabled=None, max_width=0, name='segment1', noindent=False, prefix='', print_empty=False, recovery_method='auto', service_type='COMPUTE', variables=[])) Instantiating masakari service client REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" Starting new HTTP connection (1): 192.168.21.236:15868 http://192.168.21.236:15868 "GET /instance-ha/v1 HTTP/1.1" 300 243 RESP: [300] Connection: keep-alive Content-Length: 243 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1/60f22841495b46099a67118bb88cc2d8 HTTP/1.1" 300 276 RESP: [300] Connection: keep-alive Content-Length: 276 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1 HTTP/1.1" 300 243 RESP: [300] Connection: keep-alive Content-Length: 243 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X GET http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8 -H "Accept: application/json" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" http://192.168.21.236:15868 "GET /instance-ha/v1/60f22841495b46099a67118bb88cc2d8 HTTP/1.1" 300 276 RESP: [300] Connection: keep-alive Content-Length: 276 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} REQ: curl -g -i -X POST http://192.168.21.236:15868/instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments -H "Content-Type: application/json" -H "OpenStack-API-Version: instance-ha 1.2" -H "User-Agent: openstacksdk/0.50.0 keystoneauth1/4.2.1 python-requests/2.22.0 CPython/3.6.8" -H "X-Auth-Token: {SHA256}73c91da75a635750fe20ec5bb806d5824ab39c40b8d850aebd6f89b0850da18b" -d '{"segment": {"recovery_method": "auto", "service_type": "COMPUTE", "name": "segment1"}}' http://192.168.21.236:15868 "POST /instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments HTTP/1.1" 300 285 RESP: [300] Connection: keep-alive Content-Length: 285 Content-Type: application/json Date: Fri, 07 Jan 2022 08:07:18 GMT RESP BODY: {"choices": [{"id": "v1.0", "status": "CURRENT", "links": [{"rel": "self", "href": "http://192.168.21.236:15868/v1/instance-ha/v1/60f22841495b46099a67118bb88cc2d8/segments"}], "media-types": [{"base": "application/json", "type": "application/vnd.openstack.masakari+json;version=1"}]}]} Request requires an ID but none was found Traceback (most recent call last):   File "/usr/lib/python3.6/site-packages/cliff/app.py", line 400, in run_subcommand     result = cmd.run(parsed_args)   File "/usr/lib/python3.6/site-packages/osc_lib/command/command.py", line 39, in run     return super(Command, self).run(parsed_args)   File "/usr/lib/python3.6/site-packages/cliff/display.py", line 117, in run     column_names, data = self.take_action(parsed_args)   File "/usr/local/lib/python3.6/site-packages/masakariclient/osc/v1/segment.py", line 169, in take_action     segment.uuid)   File "/usr/local/lib/python3.6/site-packages/masakariclient/osc/v1/segment.py", line 277, in _show_segment     segment = masakari_client.get_segment(segment_uuid)   File "/usr/lib/python3.6/site-packages/openstack/instance_ha/v1/_proxy.py", line 86, in get_segment     return self._get(_segment.Segment, segment)   File "/usr/lib/python3.6/site-packages/openstack/proxy.py", line 47, in check     return method(self, expected, actual, *args, **kwargs)   File "/usr/lib/python3.6/site-packages/openstack/proxy.py", line 509, in _get     resource_type=resource_type.__name__, value=value))   File "/usr/lib/python3.6/site-packages/openstack/resource.py", line 1406, in fetch     base_path=base_path)   File "/usr/lib/python3.6/site-packages/openstack/resource.py", line 1092, in _prepare_request     "Request requires an ID but none was found") openstack.exceptions.InvalidRequest: Request requires an ID but none was found clean_up CreateSegment: Request requires an ID but none was found
2022-01-07 09:19:32 Radosław Piliszek python-masakariclient: status New Incomplete
2022-03-11 04:17:16 Launchpad Janitor python-masakariclient: status Incomplete Expired