2025-07-21 14:22:01,376 - INFO - Domain Default found not creating 2025-07-21 14:22:01,709 - INFO - Project ctest-TestBasicPolicy-90698021 not found, creating it 2025-07-21 14:22:02,411 - INFO - Created Project:ctest-TestBasicPolicy-90698021, ID : d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:04,690 - INFO - ================================================================================ 2025-07-21 14:22:04,691 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-07-21 14:22:04,691 - 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-21 14:22:05,019 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-07-21 14:22:05,019 - INFO - Initial checks done. Running the testcase now 2025-07-21 14:22:05,019 - INFO - 2025-07-21 14:22:05,898 - DEBUG - Response for create_network : {'network': {'id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'name': 'ctest-vn-98747829', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-98747829'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 14:22:06,117 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e6f494f8-cb85-41b1-a7cd-34affb938350', 'name': '', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'network_id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'ip_version': 4, 'cidr': '148.101.0.192/26', 'allocation_pools': [{'start': '148.101.0.194', 'end': '148.101.0.254'}], 'gateway_ip': '148.101.0.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.101.0.194', 'tags': [], 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5'}} 2025-07-21 14:22:06,142 - INFO - Created VN ctest-vn-98747829 2025-07-21 14:22:06,202 - DEBUG - VN ctest-vn-98747829 UUID is 9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:06,625 - DEBUG - Response for create_network : {'network': {'id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'name': 'ctest-vn-44498821', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-44498821'], 'port_security_enabled': True, 'description': ''}} 2025-07-21 14:22:06,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c2dc5c9-7332-4bbf-9bbd-5f053880b5cd', 'name': '', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'network_id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'ip_version': 4, 'cidr': '184.53.243.0/26', 'allocation_pools': [{'start': '184.53.243.2', 'end': '184.53.243.62'}], 'gateway_ip': '184.53.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.53.243.2', 'tags': [], 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5'}} 2025-07-21 14:22:06,840 - INFO - Created VN ctest-vn-44498821 2025-07-21 14:22:06,894 - DEBUG - VN ctest-vn-44498821 UUID is b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:07,086 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829, 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-90698021:ctest-vn-44498821, 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-21 14:22:07,645 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b8a9535-0df4-4892-9054-d854e5cb2479', 'name': 'ctest-vn-98747829', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e6f494f8-cb85-41b1-a7cd-34affb938350'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-98747829'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']], 'subnet_ipam': [{'subnet_cidr': '148.101.0.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 14:22:07,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6c44348-7b8f-4824-9cde-fd1dee79ee50', 'name': 'ctest-vn-44498821', 'tenant_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'project_id': 'd1a6d5bdc25c42c7bbcbb899126c0ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c2dc5c9-7332-4bbf-9bbd-5f053880b5cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-vn-44498821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809']], 'subnet_ipam': [{'subnet_cidr': '184.53.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-21 14:22:08,163 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:08,504 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:08,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:08,606 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:08,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:08,761 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:08,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:08,809 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:08,828 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fed7297d-1113-423b-964c-4d2f1909eade 2025-07-21 14:22:08,847 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-21 14:22:08,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:08,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:08,921 - INFO - Verified VN network id 8 for VN 9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:08,921 - INFO - Verifications in API Server for VN ctest-vn-98747829 passed 2025-07-21 14:22:08,921 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:08,946 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:08,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:08,979 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fed7297d-1113-423b-964c-4d2f1909eade 2025-07-21 14:22:09,011 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90698021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11207934677764819090', 'uuid-lslong': '10400175298649465977'}, 'enable': 'true', 'created': '2025-07-21T14:22:05', 'last-modified': '2025-07-21T14:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.440250'} 2025-07-21 14:22:09,025 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-21 14:22:09,025 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98747829 passed 2025-07-21 14:22:09,026 - DEBUG - ====Verifying policy data for ctest-vn-98747829 in API_Server ====== 2025-07-21 14:22:09,026 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:09,037 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:09,061 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:09,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9b8a9535-0df4-4892-9054-d854e5cb2479 2025-07-21 14:22:09,196 - DEBUG - ==>Verifying data for policy with id: d22ede57-96e4-43d1-a4e7-e8fede84908b, fqn: ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809'] 2025-07-21 14:22:09,196 - INFO - VN ctest-vn-98747829 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 14:22:09,196 - DEBUG - Verifying the vn in opserver 2025-07-21 14:22:09,196 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829 virtual network link through opserver 10.0.0.38 2025-07-21 14:22:09,197 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-21 14:22:09,518 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-21 14:22:09,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829?flat'} 2025-07-21 14:22:09,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829 is found in opserver 2025-07-21 14:22:09,641 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 14:22:09,652 - DEBUG - VRF ids for VN ctest-vn-98747829: {} 2025-07-21 14:22:09,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:09,662 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:09,683 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:09,775 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:09,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:09,806 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:09,816 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:09,826 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35dd141e-7fb0-4f86-b782-fee615a74bca 2025-07-21 14:22:09,837 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-21 14:22:09,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:09,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:09,881 - INFO - Verified VN network id 9 for VN b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:09,881 - INFO - Verifications in API Server for VN ctest-vn-44498821 passed 2025-07-21 14:22:09,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:09,895 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:09,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:09,916 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/35dd141e-7fb0-4f86-b782-fee615a74bca 2025-07-21 14:22:09,935 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90698021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13169725188927866916', 'uuid-lslong': '11303750419743370832'}, 'enable': 'true', 'created': '2025-07-21T14:22:06', 'last-modified': '2025-07-21T14:22:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.002166'} 2025-07-21 14:22:09,944 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-07-21 14:22:09,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44498821 passed 2025-07-21 14:22:09,944 - DEBUG - ====Verifying policy data for ctest-vn-44498821 in API_Server ====== 2025-07-21 14:22:09,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:09,956 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:09,976 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:10,066 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b6c44348-7b8f-4824-9cde-fd1dee79ee50 2025-07-21 14:22:10,080 - DEBUG - ==>Verifying data for policy with id: d22ede57-96e4-43d1-a4e7-e8fede84908b, fqn: ['default-domain', 'ctest-TestBasicPolicy-90698021', 'ctest-policy-allow-all-88387809'] 2025-07-21 14:22:10,080 - INFO - VN ctest-vn-44498821 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-21 14:22:10,080 - DEBUG - Verifying the vn in opserver 2025-07-21 14:22:10,080 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821 virtual network link through opserver 10.0.0.38 2025-07-21 14:22:10,080 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-21 14:22:10,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821?flat'} 2025-07-21 14:22:10,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-44498821 is found in opserver 2025-07-21 14:22:10,118 - DEBUG - Do not have enough data to verify VN in agent 2025-07-21 14:22:10,125 - DEBUG - VRF ids for VN ctest-vn-44498821: {} 2025-07-21 14:22:10,220 - DEBUG - Services list from nova: [, , ] 2025-07-21 14:22:11,626 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3681-1) 2025-07-21 14:22:13,096 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3681-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3681-1) 2025-07-21 14:22:13,097 - INFO - Waiting for VM ctest-TestBasicPolicy-90698021-02993992 to be up.. 2025-07-21 14:22:13,192 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-07-21 14:22:18,384 - DEBUG - VM is in ACTIVE state now 2025-07-21 14:22:18,384 - INFO - VM name : ctest-TestBasicPolicy-90698021-02993992 2025-07-21 14:22:18,520 - DEBUG - VM ctest-TestBasicPolicy-90698021-02993992 ID is 1d9484f4-ce48-43a2-9445-4ac0564404fc 2025-07-21 14:22:18,556 - DEBUG - VM ctest-TestBasicPolicy-90698021-02993992 launched on Node cn-jenkins-deploy-platform-ansible-os-3681-1 2025-07-21 14:22:18,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/1d9484f4-ce48-43a2-9445-4ac0564404fc 2025-07-21 14:22:18,673 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/8ce91ed5-29c4-4ce0-929c-907e44c69ae9 2025-07-21 14:22:21,954 - 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 1004ms') 2025-07-21 14:22:21,954 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90698021-02993992 failed! 2025-07-21 14:22:22,035 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-90698021:ctest-vn-98747829 is 148.101.0.193 and allocation pool is NOT set 2025-07-21 14:22:24,108 - 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=4.75 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.01 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.007/2.878/4.749/1.871 ms') 2025-07-21 14:22:24,108 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-90698021-02993992 passed 2025-07-21 14:22:24,286 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 14:22:24,286 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90698021-02993992, IP 148.101.0.195, Port 22 2025-07-21 14:22:24,355 - 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-07-21 14:22:24,544 - DEBUG - VM ctest-TestBasicPolicy-90698021-02993992 is NOT ready for SSH connections, VM status: ACTIVE 2025-07-21 14:22:29,546 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 14:22:29,546 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90698021-02993992, IP 148.101.0.195, Port 22 2025-07-21 14:22:29,764 - DEBUG - VM ctest-TestBasicPolicy-90698021-02993992 is ready for SSH connections 2025-07-21 14:22:29,765 - INFO - Waiting for VM ctest-TestBasicPolicy-90698021-66907496 to be up.. 2025-07-21 14:22:29,960 - DEBUG - VM is in ACTIVE state now 2025-07-21 14:22:29,961 - INFO - VM name : ctest-TestBasicPolicy-90698021-66907496 2025-07-21 14:22:30,145 - DEBUG - VM ctest-TestBasicPolicy-90698021-66907496 ID is 9aaf1c9a-b20d-4880-b369-3e750b458420 2025-07-21 14:22:30,145 - DEBUG - VM ctest-TestBasicPolicy-90698021-66907496 launched on Node cn-jenkins-deploy-platform-ansible-os-3681-1 2025-07-21 14:22:30,290 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/9aaf1c9a-b20d-4880-b369-3e750b458420 2025-07-21 14:22:30,312 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/66e62aab-a39b-45c6-821e-67ef2ac01877 2025-07-21 14:22:31,634 - 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=8.25 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.412 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 = 0.412/4.330/8.248/3.918 ms') 2025-07-21 14:22:31,634 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-90698021-66907496 passed 2025-07-21 14:22:31,798 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 14:22:31,798 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-90698021-66907496, IP 184.53.243.3, Port 22 2025-07-21 14:22:31,983 - DEBUG - VM ctest-TestBasicPolicy-90698021-66907496 is ready for SSH connections 2025-07-21 14:22:31,983 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 14:22:31,983 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.53.243.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-21 14:22:31,984 - DEBUG - ping -s 56 -c 3 -W 1 184.53.243.3 2025-07-21 14:22:36,694 - DEBUG - PING 184.53.243.3 (184.53.243.3): 56 data bytes 64 bytes from 184.53.243.3: seq=0 ttl=63 time=4.514 ms 64 bytes from 184.53.243.3: seq=1 ttl=63 time=1.842 ms 64 bytes from 184.53.243.3: seq=2 ttl=63 time=1.755 ms --- 184.53.243.3 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 1.755/2.703/4.514 ms 2025-07-21 14:22:36,694 - INFO - Ping to IP 184.53.243.3 from VM ctest-TestBasicPolicy-90698021-02993992 passed 2025-07-21 14:22:36,970 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d22ede57-96e4-43d1-a4e7-e8fede84908b", "href": "http://10.0.0.38:8082/network-policy/d22ede57-96e4-43d1-a4e7-e8fede84908b"}} 2025-07-21 14:22:36,971 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-07-21 14:22:36,971 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 184.53.243.3, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2025-07-21 14:22:36,971 - DEBUG - ping -s 56 -c 3 -W 1 184.53.243.3 2025-07-21 14:22:40,241 - DEBUG - PING 184.53.243.3 (184.53.243.3): 56 data bytes --- 184.53.243.3 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-07-21 14:22:40,241 - WARNING - Ping to IP 184.53.243.3 from VM ctest-TestBasicPolicy-90698021-02993992 failed 2025-07-21 14:22:40,241 - INFO - Deleting VM ctest-TestBasicPolicy-90698021-66907496 2025-07-21 14:22:40,433 - INFO - Deleting VM ctest-TestBasicPolicy-90698021-02993992 2025-07-21 14:22:40,996 - INFO - Deleted policy ctest-policy-allow-all-88387809 2025-07-21 14:22:40,996 - INFO - Deleting VN ctest-vn-44498821 2025-07-21 14:22:41,038 - DEBUG - VN b6c44348-7b8f-4824-9cde-fd1dee79ee50 still in use: Unable to complete operation on network b6c44348-7b8f-4824-9cde-fd1dee79ee50. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-4e597903-b81d-41c7-9794-78cce4334c5b'] 2025-07-21 14:22:41,038 - WARNING - Deleting VN ctest-vn-44498821 failed..Will retry 2025-07-21 14:22:43,239 - DEBUG - Response for deleting network () 2025-07-21 14:22:43,239 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/454e2e85-772c-4949-a45d-a8ff2e0d48cd 2025-07-21 14:22:43,254 - DEBUG - Response Code: 404 2025-07-21 14:22:43,254 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:43,262 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:43,320 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:43,431 - INFO - Validated that VN ctest-vn-44498821 is not found in API Server 2025-07-21 14:22:43,465 - DEBUG - VN ctest-vn-44498821 is not present in Agent 10.0.0.38 2025-07-21 14:22:43,465 - INFO - Validated that VN ctest-vn-44498821 is not in any agent 2025-07-21 14:22:43,520 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-44498821 info 2025-07-21 14:22:43,520 - INFO - Deleting VN ctest-vn-98747829 2025-07-21 14:22:43,742 - DEBUG - Response for deleting network () 2025-07-21 14:22:43,742 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cbc4b101-02b9-4d27-9962-28640d310a2a 2025-07-21 14:22:43,753 - DEBUG - Response Code: 404 2025-07-21 14:22:43,754 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-21 14:22:43,773 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5ca4c1c3-b7d0-48e0-ad51-4f994e6038e0 2025-07-21 14:22:43,792 - DEBUG - Requesting: http://10.0.0.38:8082/project/d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5 2025-07-21 14:22:43,895 - INFO - Validated that VN ctest-vn-98747829 is not found in API Server 2025-07-21 14:22:43,911 - DEBUG - VN ctest-vn-98747829 is not present in Agent 10.0.0.38 2025-07-21 14:22:43,911 - INFO - Validated that VN ctest-vn-98747829 is not in any agent 2025-07-21 14:22:43,936 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-98747829 info 2025-07-21 14:22:44,246 - DEBUG - No XMPP flaps were noticed during the test
2025-07-21 14:22:44,246 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:40]
2025-07-21 14:22:44,246 - INFO - -------------------------------------------------------------------------------- 2025-07-21 14:22:45,132 - INFO - Deleted project: ctest-TestBasicPolicy-90698021, ID : d1a6d5bd-c25c-42c7-bbcb-b899126c0ad5