2025-11-03 01:49:07,208 - INFO - Reading existing Domain with UUID 5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:07,218 - INFO - Using existing domain ['admin_domain'](5e346e6a-000a-45ec-ad9d-44dfc9f4db48) 2025-11-03 01:49:07,428 - INFO - Project ctest-TestBasicPolicy-43718354 not found, creating it 2025-11-03 01:49:07,932 - INFO - Created Project:ctest-TestBasicPolicy-43718354, ID : 1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:09,655 - INFO - ================================================================================ 2025-11-03 01:49:09,656 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-03 01:49:09,656 - 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-11-03 01:49:10,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2025-11-03 01:49:10,051 - INFO - Initial checks done. Running the testcase now 2025-11-03 01:49:10,051 - INFO - 2025-11-03 01:49:10,791 - DEBUG - Response for create_network : {'network': {'id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'name': 'ctest-vn-41640660', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-41640660'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-03 01:49:11,006 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd73ee909-5458-4db7-ace8-18fd64731850', 'name': '', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'network_id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'ip_version': 4, 'cidr': '156.36.74.0/26', 'allocation_pools': [{'start': '156.36.74.2', 'end': '156.36.74.62'}], 'gateway_ip': '156.36.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:10.911061', 'updated_at': '2025-11-03T01:49:10.911061', 'dns_server_address': '156.36.74.2', 'tags': [], 'project_id': '1fcdfdc102fd4809a83ba22f2484460b'}} 2025-11-03 01:49:11,071 - INFO - Created VN ctest-vn-41640660 2025-11-03 01:49:11,125 - DEBUG - VN ctest-vn-41640660 UUID is ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:11,594 - DEBUG - Response for create_network : {'network': {'id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'name': 'ctest-vn-25910132', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-25910132'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-11-03 01:49:11,866 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2f31ce4-0c69-4474-9f0f-38fb7c2ea51f', 'name': '', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'network_id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'ip_version': 4, 'cidr': '121.192.202.0/26', 'allocation_pools': [{'start': '121.192.202.2', 'end': '121.192.202.62'}], 'gateway_ip': '121.192.202.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-11-03T01:49:11.761028', 'updated_at': '2025-11-03T01:49:11.761028', 'dns_server_address': '121.192.202.2', 'tags': [], 'project_id': '1fcdfdc102fd4809a83ba22f2484460b'}} 2025-11-03 01:49:11,934 - INFO - Created VN ctest-vn-25910132 2025-11-03 01:49:11,985 - DEBUG - VN ctest-vn-25910132 UUID is 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:12,193 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132, 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-11-03 01:49:12,593 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec50c078-5eca-47e3-b855-bbfdbdd90d7b', 'name': 'ctest-vn-41640660', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d73ee909-5458-4db7-ace8-18fd64731850'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-41640660'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']], 'subnet_ipam': [{'subnet_cidr': '156.36.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-03T01:49:10.713577', 'updated_at': '2025-11-03T01:49:10.926482'}} 2025-11-03 01:49:12,945 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1', 'name': 'ctest-vn-25910132', 'tenant_id': '1fcdfdc102fd4809a83ba22f2484460b', 'project_id': '1fcdfdc102fd4809a83ba22f2484460b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2f31ce4-0c69-4474-9f0f-38fb7c2ea51f'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-vn-25910132'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656']], 'subnet_ipam': [{'subnet_cidr': '121.192.202.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-11-03T01:49:11.519511', 'updated_at': '2025-11-03T01:49:11.776195'}} 2025-11-03 01:49:13,129 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:13,474 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:13,562 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:13,618 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:13,699 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:13,756 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:13,811 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:13,866 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:13,918 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/12925683-a2f9-47b4-9ebf-2ba5c3c99c86 2025-11-03 01:49:13,974 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 01:49:13,974 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:14,031 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:14,095 - INFO - Verified VN network id 11 for VN ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:14,095 - INFO - Verifications in API Server for VN ctest-vn-41640660 passed 2025-11-03 01:49:14,095 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:14,155 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:14,210 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:14,262 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/12925683-a2f9-47b4-9ebf-2ba5c3c99c86 2025-11-03 01:49:14,366 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17028321814306768867', 'uuid-lslong': '13282729374485384571'}, 'enable': 'true', 'created': '2025-11-03T01:49:10', 'last-modified': '2025-11-03T01:49:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.785805'} 2025-11-03 01:49:14,419 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-03 01:49:14,419 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-41640660 passed 2025-11-03 01:49:14,420 - DEBUG - ====Verifying policy data for ctest-vn-41640660 in API_Server ====== 2025-11-03 01:49:14,420 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:14,474 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:14,535 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:14,614 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/ec50c078-5eca-47e3-b855-bbfdbdd90d7b 2025-11-03 01:49:14,671 - DEBUG - ==>Verifying data for policy with id: 2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656'] 2025-11-03 01:49:14,671 - INFO - VN ctest-vn-41640660 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 01:49:14,671 - DEBUG - Verifying the vn in opserver 2025-11-03 01:49:14,671 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660 virtual network link through opserver 10.0.0.22 2025-11-03 01:49:14,671 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 01:49:15,022 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 01:49:15,138 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660?flat'} 2025-11-03 01:49:15,138 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660 is found in opserver 2025-11-03 01:49:15,242 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 01:49:15,290 - DEBUG - VRF ids for VN ctest-vn-41640660: {} 2025-11-03 01:49:15,290 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:15,342 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:15,402 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:15,475 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:15,531 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:15,591 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:15,646 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:15,698 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/21c21f02-da84-439c-beb2-5691d63bdad6 2025-11-03 01:49:15,750 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-03 01:49:15,750 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:15,804 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:15,872 - INFO - Verified VN network id 12 for VN 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:15,873 - INFO - Verifications in API Server for VN ctest-vn-25910132 passed 2025-11-03 01:49:15,873 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:15,931 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:15,987 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:16,042 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/21c21f02-da84-439c-beb2-5691d63bdad6 2025-11-03 01:49:16,142 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43718354', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5541597672038223832', 'uuid-lslong': '11028015678706247393'}, 'enable': 'true', 'created': '2025-11-03T01:49:11', 'last-modified': '2025-11-03T01:49:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.224437'} 2025-11-03 01:49:16,195 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-11-03 01:49:16,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25910132 passed 2025-11-03 01:49:16,195 - DEBUG - ====Verifying policy data for ctest-vn-25910132 in API_Server ====== 2025-11-03 01:49:16,195 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:16,245 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:16,306 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:16,382 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 2025-11-03 01:49:16,439 - DEBUG - ==>Verifying data for policy with id: 2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d, fqn: ['admin_domain', 'ctest-TestBasicPolicy-43718354', 'ctest-policy-allow-all-30995656'] 2025-11-03 01:49:16,439 - INFO - VN ctest-vn-25910132 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-03 01:49:16,440 - DEBUG - Verifying the vn in opserver 2025-11-03 01:49:16,440 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132 virtual network link through opserver 10.0.0.22 2025-11-03 01:49:16,440 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-03 01:49:16,494 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132?flat'} 2025-11-03 01:49:16,494 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-25910132 is found in opserver 2025-11-03 01:49:16,598 - DEBUG - Do not have enough data to verify VN in agent 2025-11-03 01:49:16,646 - DEBUG - VRF ids for VN ctest-vn-25910132: {} 2025-11-03 01:49:16,711 - DEBUG - Services list from nova: [, , ] 2025-11-03 01:49:17,786 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-611-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-611-1) 2025-11-03 01:49:19,256 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-juju-os-611-1), Zone: (nova:cn-jenkins-deploy-platform-juju-os-611-1) 2025-11-03 01:49:19,256 - INFO - Waiting for VM ctest-TestBasicPolicy-43718354-44129996 to be up.. 2025-11-03 01:49:19,406 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-03 01:49:24,550 - DEBUG - VM is in ACTIVE state now 2025-11-03 01:49:24,550 - INFO - VM name : ctest-TestBasicPolicy-43718354-44129996 2025-11-03 01:49:24,692 - DEBUG - VM ctest-TestBasicPolicy-43718354-44129996 ID is 86b1ca37-9ced-4433-8f0b-147a6cb1b788 2025-11-03 01:49:24,732 - DEBUG - VM ctest-TestBasicPolicy-43718354-44129996 launched on Node cn-jenkins-deploy-platform-juju-os-611-1 2025-11-03 01:49:24,866 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine/86b1ca37-9ced-4433-8f0b-147a6cb1b788 2025-11-03 01:49:24,922 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine-interface/d8d01ff6-6fec-4a8d-8278-5b35c5c081c0 2025-11-03 01:49:28,403 - 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 1033ms') 2025-11-03 01:49:28,403 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43718354-44129996 failed! 2025-11-03 01:49:28,461 - DEBUG - Gateway for vn admin_domain:ctest-TestBasicPolicy-43718354:ctest-vn-41640660 is 156.36.74.1 and allocation pool is NOT set 2025-11-03 01:49:30,555 - 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=20.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.23 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.228/10.955/20.683/9.727 ms') 2025-11-03 01:49:30,555 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-43718354-44129996 passed 2025-11-03 01:49:30,717 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 01:49:30,717 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43718354-44129996, IP 156.36.74.3, Port 22 2025-11-03 01:49:30,993 - DEBUG - VM ctest-TestBasicPolicy-43718354-44129996 is ready for SSH connections 2025-11-03 01:49:30,993 - INFO - Waiting for VM ctest-TestBasicPolicy-43718354-45035098 to be up.. 2025-11-03 01:49:31,154 - DEBUG - VM is in ACTIVE state now 2025-11-03 01:49:31,154 - INFO - VM name : ctest-TestBasicPolicy-43718354-45035098 2025-11-03 01:49:31,345 - DEBUG - VM ctest-TestBasicPolicy-43718354-45035098 ID is 5aab6365-9bdc-44e3-8d5e-16697083f443 2025-11-03 01:49:31,346 - DEBUG - VM ctest-TestBasicPolicy-43718354-45035098 launched on Node cn-jenkins-deploy-platform-juju-os-611-1 2025-11-03 01:49:31,491 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine/5aab6365-9bdc-44e3-8d5e-16697083f443 2025-11-03 01:49:31,546 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-machine-interface/30e302c3-bdad-434a-91f8-ee514272570e 2025-11-03 01:49:33,004 - 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=5.50 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.20 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 = 1.200/3.351/5.502/2.151 ms') 2025-11-03 01:49:33,004 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-43718354-45035098 passed 2025-11-03 01:49:33,157 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 01:49:33,157 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-43718354-45035098, IP 121.192.202.3, Port 22 2025-11-03 01:49:33,377 - DEBUG - VM ctest-TestBasicPolicy-43718354-45035098 is ready for SSH connections 2025-11-03 01:49:33,377 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 01:49:33,377 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.192.202.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-03 01:49:33,377 - DEBUG - ping -s 56 -c 3 -W 1 121.192.202.3 2025-11-03 01:49:37,416 - DEBUG - PING 121.192.202.3 (121.192.202.3): 56 data bytes 64 bytes from 121.192.202.3: seq=0 ttl=63 time=3.633 ms 64 bytes from 121.192.202.3: seq=1 ttl=63 time=0.819 ms 64 bytes from 121.192.202.3: seq=2 ttl=63 time=1.020 ms --- 121.192.202.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.819/1.824/3.633 ms 2025-11-03 01:49:37,417 - INFO - Ping to IP 121.192.202.3 from VM ctest-TestBasicPolicy-43718354-44129996 passed 2025-11-03 01:49:37,617 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d", "href": "https://10.0.0.22:8082/network-policy/2f6b2a3e-9f42-441b-8a48-7eea8bf2e61d"}} 2025-11-03 01:49:37,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-03 01:49:37,617 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 121.192.202.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-11-03 01:49:37,617 - DEBUG - ping -s 56 -c 3 -W 1 121.192.202.3 2025-11-03 01:49:40,818 - DEBUG - PING 121.192.202.3 (121.192.202.3): 56 data bytes --- 121.192.202.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-11-03 01:49:40,818 - WARNING - Ping to IP 121.192.202.3 from VM ctest-TestBasicPolicy-43718354-44129996 failed 2025-11-03 01:49:40,818 - INFO - Deleting VM ctest-TestBasicPolicy-43718354-45035098 2025-11-03 01:49:40,936 - INFO - Deleting VM ctest-TestBasicPolicy-43718354-44129996 2025-11-03 01:49:41,729 - INFO - Deleted policy ctest-policy-allow-all-30995656 2025-11-03 01:49:41,729 - INFO - Deleting VN ctest-vn-25910132 2025-11-03 01:49:41,876 - DEBUG - VN 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1 still in use: Unable to complete operation on network 4ce7b5b8-d9f8-4fd8-990b-61d4b2b966e1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-520130a1-721b-42f5-83a5-37daf4042c26'] 2025-11-03 01:49:41,876 - WARNING - Deleting VN ctest-vn-25910132 failed..Will retry 2025-11-03 01:49:44,043 - DEBUG - Response for deleting network () 2025-11-03 01:49:44,043 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/3e1df3bb-4f03-4eec-b29e-aeea5b8002a3 2025-11-03 01:49:44,097 - DEBUG - Response Code: 404 2025-11-03 01:49:44,097 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:44,150 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:44,214 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:44,290 - INFO - Validated that VN ctest-vn-25910132 is not found in API Server 2025-11-03 01:49:44,386 - DEBUG - VN ctest-vn-25910132 is not present in Agent 10.0.0.22 2025-11-03 01:49:44,386 - INFO - Validated that VN ctest-vn-25910132 is not in any agent 2025-11-03 01:49:44,538 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-25910132 info 2025-11-03 01:49:44,539 - INFO - Deleting VN ctest-vn-41640660 2025-11-03 01:49:44,698 - DEBUG - Response for deleting network () 2025-11-03 01:49:44,698 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/8ddc482e-8088-4418-ae31-920ba36febd5 2025-11-03 01:49:44,749 - DEBUG - Response Code: 404 2025-11-03 01:49:44,749 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2025-11-03 01:49:44,802 - DEBUG - Requesting: https://10.0.0.22:8082/domain/5e346e6a-000a-45ec-ad9d-44dfc9f4db48 2025-11-03 01:49:44,858 - DEBUG - Requesting: https://10.0.0.22:8082/project/1fcdfdc1-02fd-4809-a83b-a22f2484460b 2025-11-03 01:49:44,934 - INFO - Validated that VN ctest-vn-41640660 is not found in API Server 2025-11-03 01:49:45,034 - DEBUG - VN ctest-vn-41640660 is not present in Agent 10.0.0.22 2025-11-03 01:49:45,034 - INFO - Validated that VN ctest-vn-41640660 is not in any agent 2025-11-03 01:49:45,186 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-41640660 info 2025-11-03 01:49:45,567 - DEBUG - No XMPP flaps were noticed during the test
2025-11-03 01:49:45,567 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-11-03 01:49:45,567 - INFO - -------------------------------------------------------------------------------- 2025-11-03 01:49:46,276 - INFO - Deleted project: ctest-TestBasicPolicy-43718354, ID : 1fcdfdc1-02fd-4809-a83b-a22f2484460b