2025-07-07 02:10:31,578 - INFO - Domain Default found not creating 2025-07-07 02:10:31,728 - INFO - Project ctest-TestBasicPolicy-79981565 not found, creating it 2025-07-07 02:10:32,214 - INFO - Created Project:ctest-TestBasicPolicy-79981565, ID : 088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:10:33,819 - INFO - ================================================================================ 2025-07-07 02:10:33,819 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-07 02:10:33,819 - 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-07-07 02:10:34,080 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.192': '0'}} with 2025-07-07 02:10:34,080 - INFO - Initial checks done. Running the testcase now 2025-07-07 02:10:34,080 - INFO - 2025-07-07 02:10:34,688 - DEBUG - Response for create_network : {'network': {'id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'name': 'ctest-vn-57504074', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-57504074'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 02:10:34,896 - DEBUG - Response for create_subnet : {'subnet': {'id': '706ead3b-086d-40b5-84e1-78796011e77d', 'name': '', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'network_id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'ip_version': 4, 'cidr': '88.167.252.64/26', 'allocation_pools': [{'start': '88.167.252.66', 'end': '88.167.252.126'}], 'gateway_ip': '88.167.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.167.252.66', 'tags': [], 'project_id': '088207fe8d0046c1b0de53e806d61581'}} 2025-07-07 02:10:34,920 - INFO - Created VN ctest-vn-57504074 2025-07-07 02:10:34,973 - DEBUG - VN ctest-vn-57504074 UUID is 98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:35,273 - DEBUG - Response for create_network : {'network': {'id': '897d7beb-6081-4d99-ba72-517de788f112', 'name': 'ctest-vn-67585025', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-67585025'], 'port_security_enabled': True, 'description': ''}} 2025-07-07 02:10:35,446 - DEBUG - Response for create_subnet : {'subnet': {'id': '39e7a11d-323d-4ae7-996c-db995ed119c3', 'name': '', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'network_id': '897d7beb-6081-4d99-ba72-517de788f112', 'ip_version': 4, 'cidr': '40.218.208.0/26', 'allocation_pools': [{'start': '40.218.208.2', 'end': '40.218.208.62'}], 'gateway_ip': '40.218.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.218.208.2', 'tags': [], 'project_id': '088207fe8d0046c1b0de53e806d61581'}} 2025-07-07 02:10:35,464 - INFO - Created VN ctest-vn-67585025 2025-07-07 02:10:35,517 - DEBUG - VN ctest-vn-67585025 UUID is 897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:35,638 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074, 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-79981565:ctest-vn-67585025, 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-07-07 02:10:35,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98077460-7ded-4aa5-a14a-63dda1699f8b', 'name': 'ctest-vn-57504074', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['706ead3b-086d-40b5-84e1-78796011e77d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-57504074'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']], 'subnet_ipam': [{'subnet_cidr': '88.167.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 02:10:36,204 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '897d7beb-6081-4d99-ba72-517de788f112', 'name': 'ctest-vn-67585025', 'tenant_id': '088207fe8d0046c1b0de53e806d61581', 'project_id': '088207fe8d0046c1b0de53e806d61581', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39e7a11d-323d-4ae7-996c-db995ed119c3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-vn-67585025'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239']], 'subnet_ipam': [{'subnet_cidr': '40.218.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-07 02:10:36,361 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:10:36,707 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:10:36,736 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:10:36,752 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:10:36,832 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:36,845 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:36,855 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:10:36,863 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:10:36,871 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f14af469-32c0-443d-8307-7374b683ba8c 2025-07-07 02:10:36,878 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 02:10:36,878 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:36,888 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:10:36,904 - INFO - Verified VN network id 8 for VN 98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:36,904 - INFO - Verifications in API Server for VN ctest-vn-57504074 passed 2025-07-07 02:10:36,904 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:36,914 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:10:36,922 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:10:36,929 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f14af469-32c0-443d-8307-7374b683ba8c 2025-07-07 02:10:36,942 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79981565', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10954852576380406437', 'uuid-lslong': '11622211591929962379'}, 'enable': 'true', 'created': '2025-07-07T02:10:34', 'last-modified': '2025-07-07T02:10:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021122'} 2025-07-07 02:10:36,950 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-07 02:10:36,950 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57504074 passed 2025-07-07 02:10:36,950 - DEBUG - ====Verifying policy data for ctest-vn-57504074 in API_Server ====== 2025-07-07 02:10:36,950 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:10:36,957 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:10:36,969 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:10:37,044 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/98077460-7ded-4aa5-a14a-63dda1699f8b 2025-07-07 02:10:37,057 - DEBUG - ==>Verifying data for policy with id: 20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239'] 2025-07-07 02:10:37,057 - INFO - VN ctest-vn-57504074 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 02:10:37,057 - DEBUG - Verifying the vn in opserver 2025-07-07 02:10:37,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074 virtual network link through opserver 10.0.0.65 2025-07-07 02:10:37,057 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-07 02:10:37,389 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-07 02:10:37,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074?flat'} 2025-07-07 02:10:37,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074 is found in opserver 2025-07-07 02:10:37,468 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 02:10:37,473 - DEBUG - VRF ids for VN ctest-vn-57504074: {} 2025-07-07 02:10:37,474 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:10:37,480 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:10:37,493 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:10:37,566 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,580 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,592 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:10:37,599 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:10:37,607 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/89355c76-c1bf-4b01-ac8e-0b544d7c95c4 2025-07-07 02:10:37,617 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 02:10:37,617 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,631 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:10:37,649 - INFO - Verified VN network id 9 for VN 897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,650 - INFO - Verifications in API Server for VN ctest-vn-67585025 passed 2025-07-07 02:10:37,650 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,661 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:10:37,669 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:10:37,677 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/89355c76-c1bf-4b01-ac8e-0b544d7c95c4 2025-07-07 02:10:37,689 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79981565', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9907211006151576985', 'uuid-lslong': '13434890239596884242'}, 'enable': 'true', 'created': '2025-07-07T02:10:35', 'last-modified': '2025-07-07T02:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.514875'} 2025-07-07 02:10:37,696 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-07 02:10:37,696 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67585025 passed 2025-07-07 02:10:37,697 - DEBUG - ====Verifying policy data for ctest-vn-67585025 in API_Server ====== 2025-07-07 02:10:37,697 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:10:37,703 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:10:37,716 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:10:37,797 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/897d7beb-6081-4d99-ba72-517de788f112 2025-07-07 02:10:37,816 - DEBUG - ==>Verifying data for policy with id: 20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49, fqn: ['default-domain', 'ctest-TestBasicPolicy-79981565', 'ctest-policy-allow-all-34652239'] 2025-07-07 02:10:37,816 - INFO - VN ctest-vn-67585025 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-07 02:10:37,816 - DEBUG - Verifying the vn in opserver 2025-07-07 02:10:37,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025 virtual network link through opserver 10.0.0.65 2025-07-07 02:10:37,816 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-07 02:10:37,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025?flat'} 2025-07-07 02:10:37,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-67585025 is found in opserver 2025-07-07 02:10:37,839 - DEBUG - Do not have enough data to verify VN in agent 2025-07-07 02:10:37,845 - DEBUG - VRF ids for VN ctest-vn-67585025: {} 2025-07-07 02:10:37,906 - DEBUG - Services list from nova: [, , ] 2025-07-07 02:10:39,020 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3604-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3604-1) 2025-07-07 02:10:40,436 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3604-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3604-1) 2025-07-07 02:10:40,436 - INFO - Waiting for VM ctest-TestBasicPolicy-79981565-11046684 to be up.. 2025-07-07 02:10:40,519 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-07 02:10:45,623 - DEBUG - VM is in ACTIVE state now 2025-07-07 02:10:45,624 - INFO - VM name : ctest-TestBasicPolicy-79981565-11046684 2025-07-07 02:10:45,722 - DEBUG - VM ctest-TestBasicPolicy-79981565-11046684 ID is d6be6ae1-0d14-4776-8bf7-f3ea95b1aaa0 2025-07-07 02:10:45,745 - DEBUG - VM ctest-TestBasicPolicy-79981565-11046684 launched on Node cn-jenkins-deploy-platform-ansible-os-3604-1 2025-07-07 02:10:45,849 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/d6be6ae1-0d14-4776-8bf7-f3ea95b1aaa0 2025-07-07 02:10:45,860 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/cde84052-30a6-4255-9681-7f9822d2c1bb 2025-07-07 02:10:49,147 - 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 1032ms') 2025-07-07 02:10:49,147 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79981565-11046684 failed! 2025-07-07 02:10:49,201 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79981565:ctest-vn-57504074 is 88.167.252.65 and allocation pool is NOT set 2025-07-07 02:10:51,259 - 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=3.14 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.927 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 = 0.927/2.032/3.138/1.105 ms') 2025-07-07 02:10:51,259 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79981565-11046684 passed 2025-07-07 02:10:51,417 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 02:10:51,418 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79981565-11046684, IP 88.167.252.67, Port 22 2025-07-07 02:10:51,576 - DEBUG - VM ctest-TestBasicPolicy-79981565-11046684 is ready for SSH connections 2025-07-07 02:10:51,577 - INFO - Waiting for VM ctest-TestBasicPolicy-79981565-95865509 to be up.. 2025-07-07 02:10:51,664 - DEBUG - VM is in ACTIVE state now 2025-07-07 02:10:51,665 - INFO - VM name : ctest-TestBasicPolicy-79981565-95865509 2025-07-07 02:10:51,750 - DEBUG - VM ctest-TestBasicPolicy-79981565-95865509 ID is 44e179a0-70d2-4db8-b8a7-a424e1863e33 2025-07-07 02:10:51,750 - DEBUG - VM ctest-TestBasicPolicy-79981565-95865509 launched on Node cn-jenkins-deploy-platform-ansible-os-3604-1 2025-07-07 02:10:51,836 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine/44e179a0-70d2-4db8-b8a7-a424e1863e33 2025-07-07 02:10:51,850 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-machine-interface/7ae1bff8-aab8-49d0-bf9f-54996102c318 2025-07-07 02:10:53,103 - 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=4.33 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=1.43 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 1.430/2.878/4.327/1.448 ms') 2025-07-07 02:10:53,103 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-79981565-95865509 passed 2025-07-07 02:10:53,261 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 02:10:53,261 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79981565-95865509, IP 40.218.208.3, Port 22 2025-07-07 02:10:53,328 - DEBUG - Error on ssh to cirros@169.254.0.4:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.4/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.4/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.4/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-07-07 02:10:53,408 - DEBUG - VM ctest-TestBasicPolicy-79981565-95865509 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-07 02:10:58,409 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 02:10:58,410 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79981565-95865509, IP 40.218.208.3, Port 22 2025-07-07 02:10:58,564 - DEBUG - VM ctest-TestBasicPolicy-79981565-95865509 is ready for SSH connections 2025-07-07 02:10:58,565 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 02:10:58,565 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.218.208.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-07-07 02:10:58,565 - DEBUG - ping -s 56 -c 3 -W 1 40.218.208.3 2025-07-07 02:11:02,315 - DEBUG - PING 40.218.208.3 (40.218.208.3): 56 data bytes 64 bytes from 40.218.208.3: seq=0 ttl=63 time=5.353 ms 64 bytes from 40.218.208.3: seq=1 ttl=63 time=0.958 ms 64 bytes from 40.218.208.3: seq=2 ttl=63 time=0.794 ms --- 40.218.208.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.794/2.368/5.353 ms 2025-07-07 02:11:02,315 - INFO - Ping to IP 40.218.208.3 from VM ctest-TestBasicPolicy-79981565-11046684 passed 2025-07-07 02:11:02,505 - DEBUG - Policy Update Response {"network-policy": {"uuid": "20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49", "href": "http://10.0.0.65:8082/network-policy/20bbdea5-d576-45f3-b5b7-b7fbbdbd2d49"}} 2025-07-07 02:11:02,505 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-07 02:11:02,505 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 40.218.208.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.65, gateway password: c0ntrail123 2025-07-07 02:11:02,505 - DEBUG - ping -s 56 -c 3 -W 1 40.218.208.3 2025-07-07 02:11:05,756 - DEBUG - PING 40.218.208.3 (40.218.208.3): 56 data bytes 64 bytes from 40.218.208.3: seq=0 ttl=63 time=1.618 ms --- 40.218.208.3 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.618/1.618/1.618 ms 2025-07-07 02:11:05,756 - WARNING - Ping to IP 40.218.208.3 from VM ctest-TestBasicPolicy-79981565-11046684 failed 2025-07-07 02:11:05,756 - INFO - Deleting VM ctest-TestBasicPolicy-79981565-95865509 2025-07-07 02:11:05,828 - INFO - Deleting VM ctest-TestBasicPolicy-79981565-11046684 2025-07-07 02:11:06,242 - INFO - Deleted policy ctest-policy-allow-all-34652239 2025-07-07 02:11:06,242 - INFO - Deleting VN ctest-vn-67585025 2025-07-07 02:11:06,281 - DEBUG - VN 897d7beb-6081-4d99-ba72-517de788f112 still in use: Unable to complete operation on network 897d7beb-6081-4d99-ba72-517de788f112. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-7dc2e7a3-b15f-4745-b298-720bae1c9520'] 2025-07-07 02:11:06,281 - WARNING - Deleting VN ctest-vn-67585025 failed..Will retry 2025-07-07 02:11:08,389 - DEBUG - Response for deleting network () 2025-07-07 02:11:08,389 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/9898c189-adce-4871-a1bd-0747693007ca 2025-07-07 02:11:08,395 - DEBUG - Response Code: 404 2025-07-07 02:11:08,395 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:11:08,403 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:11:08,460 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:11:08,534 - INFO - Validated that VN ctest-vn-67585025 is not found in API Server 2025-07-07 02:11:08,547 - DEBUG - VN ctest-vn-67585025 is not present in Agent 10.0.0.65 2025-07-07 02:11:08,547 - INFO - Validated that VN ctest-vn-67585025 is not in any agent 2025-07-07 02:11:08,565 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-67585025 info 2025-07-07 02:11:08,566 - INFO - Deleting VN ctest-vn-57504074 2025-07-07 02:11:08,701 - DEBUG - Response for deleting network () 2025-07-07 02:11:08,701 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/decb1945-ec8c-4d8e-a15d-0d882760380e 2025-07-07 02:11:08,711 - DEBUG - Response Code: 404 2025-07-07 02:11:08,711 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-07 02:11:08,718 - DEBUG - Requesting: http://10.0.0.65:8082/domain/46684ecd-99f1-4e63-b551-8bba36b9d236 2025-07-07 02:11:08,775 - DEBUG - Requesting: http://10.0.0.65:8082/project/088207fe-8d00-46c1-b0de-53e806d61581 2025-07-07 02:11:08,849 - INFO - Validated that VN ctest-vn-57504074 is not found in API Server 2025-07-07 02:11:08,861 - DEBUG - VN ctest-vn-57504074 is not present in Agent 10.0.0.65 2025-07-07 02:11:08,862 - INFO - Validated that VN ctest-vn-57504074 is not in any agent 2025-07-07 02:11:08,890 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57504074 info 2025-07-07 02:11:09,160 - DEBUG - No XMPP flaps were noticed during the test
2025-07-07 02:11:09,160 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-07-07 02:11:09,160 - INFO - -------------------------------------------------------------------------------- 2025-07-07 02:11:09,884 - INFO - Deleted project: ctest-TestBasicPolicy-79981565, ID : 088207fe-8d00-46c1-b0de-53e806d61581