2025-03-25 17:27:57,237 - INFO - Domain Default found not creating 2025-03-25 17:27:57,750 - INFO - Project ctest-TestBasicPolicy-15538534 not found, creating it 2025-03-25 17:27:58,573 - INFO - Created Project:ctest-TestBasicPolicy-15538534, ID : 7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:00,239 - INFO - ================================================================================ 2025-03-25 17:28:00,239 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-03-25 17:28:00,239 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2025-03-25 17:28:00,502 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.7': '0'}} with 2025-03-25 17:28:00,502 - INFO - Initial checks done. Running the testcase now 2025-03-25 17:28:00,502 - INFO - 2025-03-25 17:28:01,126 - DEBUG - Response for create_network : {'network': {'id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'name': 'ctest-vn-43958955', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-43958955'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:28:01,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d5c9577-2edd-4073-9e37-7b0625038aad', 'name': '', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'network_id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'ip_version': 4, 'cidr': '211.198.206.128/26', 'allocation_pools': [{'start': '211.198.206.130', 'end': '211.198.206.190'}], 'gateway_ip': '211.198.206.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.198.206.130', 'tags': [], 'project_id': '7721c62af6fe49529c75006682b6ba07'}} 2025-03-25 17:28:01,345 - INFO - Created VN ctest-vn-43958955 2025-03-25 17:28:01,400 - DEBUG - VN ctest-vn-43958955 UUID is 1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:01,732 - DEBUG - Response for create_network : {'network': {'id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'name': 'ctest-vn-21588253', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-21588253'], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:28:01,901 - DEBUG - Response for create_subnet : {'subnet': {'id': '59168c5f-b2c4-43aa-b53e-0374158fd229', 'name': '', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'network_id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'ip_version': 4, 'cidr': '186.149.220.0/26', 'allocation_pools': [{'start': '186.149.220.2', 'end': '186.149.220.62'}], 'gateway_ip': '186.149.220.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '186.149.220.2', 'tags': [], 'project_id': '7721c62af6fe49529c75006682b6ba07'}} 2025-03-25 17:28:01,933 - INFO - Created VN ctest-vn-21588253 2025-03-25 17:28:01,988 - DEBUG - VN ctest-vn-21588253 UUID is 4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:02,120 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2025-03-25 17:28:02,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1a974d7d-af60-4a1d-b675-f224e7a02eaa', 'name': 'ctest-vn-43958955', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4d5c9577-2edd-4073-9e37-7b0625038aad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-43958955'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']], 'subnet_ipam': [{'subnet_cidr': '211.198.206.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:28:02,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d83f9d1-02cf-48f4-addf-ebb00ac78b91', 'name': 'ctest-vn-21588253', 'tenant_id': '7721c62af6fe49529c75006682b6ba07', 'project_id': '7721c62af6fe49529c75006682b6ba07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59168c5f-b2c4-43aa-b53e-0374158fd229'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-vn-21588253'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210']], 'subnet_ipam': [{'subnet_cidr': '186.149.220.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-03-25 17:28:02,888 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:03,230 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:03,261 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:03,276 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:03,362 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,383 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,404 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:03,416 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:03,427 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/44498cfc-aefe-4520-a57f-f88245769858 2025-03-25 17:28:03,439 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 17:28:03,439 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,455 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:03,484 - INFO - Verified VN network id 8 for VN 1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,484 - INFO - Verifications in API Server for VN ctest-vn-43958955 passed 2025-03-25 17:28:03,484 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,503 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:03,513 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:03,523 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/44498cfc-aefe-4520-a57f-f88245769858 2025-03-25 17:28:03,541 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15538534', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1916085368678009373', 'uuid-lslong': '13147680927496810154'}, 'enable': 'true', 'created': '2025-03-25T17:28:01', 'last-modified': '2025-03-25T17:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.139200'} 2025-03-25 17:28:03,550 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-03-25 17:28:03,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43958955 passed 2025-03-25 17:28:03,550 - DEBUG - ====Verifying policy data for ctest-vn-43958955 in API_Server ====== 2025-03-25 17:28:03,550 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:03,560 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:03,581 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:03,664 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/1a974d7d-af60-4a1d-b675-f224e7a02eaa 2025-03-25 17:28:03,677 - DEBUG - ==>Verifying data for policy with id: e0e06d1d-a111-484c-9f37-99f5b16e4665, fqn: ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210'] 2025-03-25 17:28:03,677 - INFO - VN ctest-vn-43958955 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 17:28:03,677 - DEBUG - Verifying the vn in opserver 2025-03-25 17:28:03,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955 virtual network link through opserver 10.0.0.48 2025-03-25 17:28:03,677 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-03-25 17:28:04,014 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-03-25 17:28:04,080 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955?flat'} 2025-03-25 17:28:04,080 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955 is found in opserver 2025-03-25 17:28:04,094 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 17:28:04,100 - DEBUG - VRF ids for VN ctest-vn-43958955: {} 2025-03-25 17:28:04,100 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:04,107 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:04,119 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:04,195 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,211 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,223 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:04,232 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:04,241 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0389e531-b111-42fd-afec-c7db7ef3166b 2025-03-25 17:28:04,250 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 17:28:04,250 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,266 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:04,290 - INFO - Verified VN network id 9 for VN 4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,290 - INFO - Verifications in API Server for VN ctest-vn-21588253 passed 2025-03-25 17:28:04,290 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,308 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:04,318 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:04,328 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/0389e531-b111-42fd-afec-c7db7ef3166b 2025-03-25 17:28:04,344 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15538534', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5585582638960167156', 'uuid-lslong': '12528991829695630225'}, 'enable': 'true', 'created': '2025-03-25T17:28:01', 'last-modified': '2025-03-25T17:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.683291'} 2025-03-25 17:28:04,353 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-03-25 17:28:04,353 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21588253 passed 2025-03-25 17:28:04,354 - DEBUG - ====Verifying policy data for ctest-vn-21588253 in API_Server ====== 2025-03-25 17:28:04,354 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:04,362 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:04,377 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:04,455 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4d83f9d1-02cf-48f4-addf-ebb00ac78b91 2025-03-25 17:28:04,466 - DEBUG - ==>Verifying data for policy with id: e0e06d1d-a111-484c-9f37-99f5b16e4665, fqn: ['default-domain', 'ctest-TestBasicPolicy-15538534', 'ctest-policy-allow-all-56345210'] 2025-03-25 17:28:04,466 - INFO - VN ctest-vn-21588253 Policy verification: verify_vn_policy_in_api_server, status: True 2025-03-25 17:28:04,466 - DEBUG - Verifying the vn in opserver 2025-03-25 17:28:04,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253 virtual network link through opserver 10.0.0.48 2025-03-25 17:28:04,467 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-03-25 17:28:04,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253?flat'} 2025-03-25 17:28:04,480 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-21588253 is found in opserver 2025-03-25 17:28:04,495 - DEBUG - Do not have enough data to verify VN in agent 2025-03-25 17:28:04,501 - DEBUG - VRF ids for VN ctest-vn-21588253: {} 2025-03-25 17:28:04,568 - DEBUG - Services list from nova: [, , ] 2025-03-25 17:28:05,776 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2952-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2952-1) 2025-03-25 17:28:07,251 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2952-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2952-1) 2025-03-25 17:28:07,252 - INFO - Waiting for VM ctest-TestBasicPolicy-15538534-77423929 to be up.. 2025-03-25 17:28:07,369 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-03-25 17:28:12,465 - DEBUG - VM is in ACTIVE state now 2025-03-25 17:28:12,465 - INFO - VM name : ctest-TestBasicPolicy-15538534-77423929 2025-03-25 17:28:12,558 - DEBUG - VM ctest-TestBasicPolicy-15538534-77423929 ID is e0920610-d819-45e7-b189-1d6168915078 2025-03-25 17:28:12,582 - DEBUG - VM ctest-TestBasicPolicy-15538534-77423929 launched on Node cn-jenkins-deploy-platform-ansible-os-2952-1 2025-03-25 17:28:12,678 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/e0920610-d819-45e7-b189-1d6168915078 2025-03-25 17:28:12,689 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/1754d9fa-3f58-4dfb-ac76-c6903cb54e5b 2025-03-25 17:28:15,962 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1024ms') 2025-03-25 17:28:15,962 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15538534-77423929 failed! 2025-03-25 17:28:16,020 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-15538534:ctest-vn-43958955 is 211.198.206.129 and allocation pool is NOT set 2025-03-25 17:28:18,090 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=13.9 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.76 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.755/7.850/13.946/6.095 ms') 2025-03-25 17:28:18,090 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-15538534-77423929 passed 2025-03-25 17:28:18,248 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:28:18,248 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15538534-77423929, IP 211.198.206.131, Port 22 2025-03-25 17:28:18,314 - DEBUG - Error on ssh to cirros@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-03-25 17:28:18,412 - DEBUG - VM ctest-TestBasicPolicy-15538534-77423929 is NOT ready for SSH connections, VM status: ACTIVE 2025-03-25 17:28:23,412 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:28:23,412 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15538534-77423929, IP 211.198.206.131, Port 22 2025-03-25 17:28:23,567 - DEBUG - VM ctest-TestBasicPolicy-15538534-77423929 is ready for SSH connections 2025-03-25 17:28:23,567 - INFO - Waiting for VM ctest-TestBasicPolicy-15538534-69676287 to be up.. 2025-03-25 17:28:23,662 - DEBUG - VM is in ACTIVE state now 2025-03-25 17:28:23,662 - INFO - VM name : ctest-TestBasicPolicy-15538534-69676287 2025-03-25 17:28:23,767 - DEBUG - VM ctest-TestBasicPolicy-15538534-69676287 ID is 0b09e629-00eb-4173-bf46-7bb0fedceb79 2025-03-25 17:28:23,767 - DEBUG - VM ctest-TestBasicPolicy-15538534-69676287 launched on Node cn-jenkins-deploy-platform-ansible-os-2952-1 2025-03-25 17:28:23,878 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/0b09e629-00eb-4173-bf46-7bb0fedceb79 2025-03-25 17:28:23,889 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/acfaf6d0-f049-4f62-8eff-3be48ec10b87 2025-03-25 17:28:25,139 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=3.53 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.428 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.428/1.978/3.528/1.550 ms') 2025-03-25 17:28:25,139 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-15538534-69676287 passed 2025-03-25 17:28:25,296 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:28:25,296 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-15538534-69676287, IP 186.149.220.3, Port 22 2025-03-25 17:28:25,452 - DEBUG - VM ctest-TestBasicPolicy-15538534-69676287 is ready for SSH connections 2025-03-25 17:28:25,452 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:28:25,452 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.149.220.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-25 17:28:25,452 - DEBUG - ping -s 56 -c 3 -W 1 186.149.220.3 2025-03-25 17:28:29,663 - DEBUG - PING 186.149.220.3 (186.149.220.3): 56 data bytes 64 bytes from 186.149.220.3: seq=0 ttl=63 time=4.867 ms 64 bytes from 186.149.220.3: seq=1 ttl=63 time=0.979 ms 64 bytes from 186.149.220.3: seq=2 ttl=63 time=1.017 ms --- 186.149.220.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.979/2.287/4.867 ms 2025-03-25 17:28:29,663 - INFO - Ping to IP 186.149.220.3 from VM ctest-TestBasicPolicy-15538534-77423929 passed 2025-03-25 17:28:29,860 - DEBUG - Policy Update Response {"network-policy": {"uuid": "e0e06d1d-a111-484c-9f37-99f5b16e4665", "href": "http://10.0.0.48:8082/network-policy/e0e06d1d-a111-484c-9f37-99f5b16e4665"}} 2025-03-25 17:28:29,860 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-03-25 17:28:29,860 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 186.149.220.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2025-03-25 17:28:29,860 - DEBUG - ping -s 56 -c 3 -W 1 186.149.220.3 2025-03-25 17:28:33,093 - DEBUG - PING 186.149.220.3 (186.149.220.3): 56 data bytes 64 bytes from 186.149.220.3: seq=0 ttl=63 time=1.607 ms --- 186.149.220.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.607/1.607/1.607 ms 2025-03-25 17:28:33,093 - WARNING - Ping to IP 186.149.220.3 from VM ctest-TestBasicPolicy-15538534-77423929 failed 2025-03-25 17:28:33,094 - INFO - Deleting VM ctest-TestBasicPolicy-15538534-69676287 2025-03-25 17:28:33,172 - INFO - Deleting VM ctest-TestBasicPolicy-15538534-77423929 2025-03-25 17:28:33,595 - INFO - Deleted policy ctest-policy-allow-all-56345210 2025-03-25 17:28:33,596 - INFO - Deleting VN ctest-vn-21588253 2025-03-25 17:28:33,643 - DEBUG - VN 4d83f9d1-02cf-48f4-addf-ebb00ac78b91 still in use: Unable to complete operation on network 4d83f9d1-02cf-48f4-addf-ebb00ac78b91. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-20c3c1e4-796a-4517-8d10-19200ad5169a'] 2025-03-25 17:28:33,643 - WARNING - Deleting VN ctest-vn-21588253 failed..Will retry 2025-03-25 17:28:35,754 - DEBUG - Response for deleting network () 2025-03-25 17:28:35,754 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/1448ddda-8d48-4383-8624-a9d642a49f1f 2025-03-25 17:28:35,764 - DEBUG - Response Code: 404 2025-03-25 17:28:35,764 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:35,772 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:35,831 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:35,908 - INFO - Validated that VN ctest-vn-21588253 is not found in API Server 2025-03-25 17:28:35,922 - DEBUG - VN ctest-vn-21588253 is not present in Agent 10.0.0.48 2025-03-25 17:28:35,922 - INFO - Validated that VN ctest-vn-21588253 is not in any agent 2025-03-25 17:28:35,943 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-21588253 info 2025-03-25 17:28:35,944 - INFO - Deleting VN ctest-vn-43958955 2025-03-25 17:28:36,071 - DEBUG - Response for deleting network () 2025-03-25 17:28:36,071 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/2ced801a-ca9c-4e31-ba02-5913b321c749 2025-03-25 17:28:36,080 - DEBUG - Response Code: 404 2025-03-25 17:28:36,080 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-03-25 17:28:36,086 - DEBUG - Requesting: http://10.0.0.48:8082/domain/230ad001-b8c0-4ea3-a451-08fba16937b4 2025-03-25 17:28:36,142 - DEBUG - Requesting: http://10.0.0.48:8082/project/7721c62a-f6fe-4952-9c75-006682b6ba07 2025-03-25 17:28:36,216 - INFO - Validated that VN ctest-vn-43958955 is not found in API Server 2025-03-25 17:28:36,229 - DEBUG - VN ctest-vn-43958955 is not present in Agent 10.0.0.48 2025-03-25 17:28:36,229 - INFO - Validated that VN ctest-vn-43958955 is not in any agent 2025-03-25 17:28:36,247 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-43958955 info 2025-03-25 17:28:36,507 - DEBUG - No XMPP flaps were noticed during the test
2025-03-25 17:28:36,507 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-03-25 17:28:36,507 - INFO - -------------------------------------------------------------------------------- 2025-03-25 17:28:37,253 - INFO - Deleted project: ctest-TestBasicPolicy-15538534, ID : 7721c62a-f6fe-4952-9c75-006682b6ba07