2025-05-08 17:02:46,142 - INFO - Domain Default found not creating 2025-05-08 17:02:46,300 - INFO - Project ctest-TestBasicPolicy-17792631 not found, creating it 2025-05-08 17:02:46,778 - INFO - Created Project:ctest-TestBasicPolicy-17792631, ID : bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:02:48,354 - INFO - ================================================================================ 2025-05-08 17:02:48,355 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-05-08 17:02:48,355 - 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-05-08 17:02:48,619 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-05-08 17:02:48,619 - INFO - Initial checks done. Running the testcase now 2025-05-08 17:02:48,619 - INFO - 2025-05-08 17:02:49,221 - DEBUG - Response for create_network : {'network': {'id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'name': 'ctest-vn-17448449', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-17448449'], 'port_security_enabled': True, 'description': ''}} 2025-05-08 17:02:49,447 - DEBUG - Response for create_subnet : {'subnet': {'id': '8dd4feb8-0edc-460c-9f17-ca83c96eb46b', 'name': '', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'network_id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'ip_version': 4, 'cidr': '53.11.13.64/26', 'allocation_pools': [{'start': '53.11.13.66', 'end': '53.11.13.126'}], 'gateway_ip': '53.11.13.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.11.13.66', 'tags': [], 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2'}} 2025-05-08 17:02:49,465 - INFO - Created VN ctest-vn-17448449 2025-05-08 17:02:49,519 - DEBUG - VN ctest-vn-17448449 UUID is 7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:49,823 - DEBUG - Response for create_network : {'network': {'id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'name': 'ctest-vn-53978492', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-53978492'], 'port_security_enabled': True, 'description': ''}} 2025-05-08 17:02:50,005 - DEBUG - Response for create_subnet : {'subnet': {'id': '58b7420b-c8ab-488b-b77b-c307738fdab8', 'name': '', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'network_id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'ip_version': 4, 'cidr': '45.138.32.192/26', 'allocation_pools': [{'start': '45.138.32.194', 'end': '45.138.32.254'}], 'gateway_ip': '45.138.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.138.32.194', 'tags': [], 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2'}} 2025-05-08 17:02:50,022 - INFO - Created VN ctest-vn-53978492 2025-05-08 17:02:50,075 - DEBUG - VN ctest-vn-53978492 UUID is 56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:50,187 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449, 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-17792631:ctest-vn-53978492, 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-05-08 17:02:50,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7ce435bd-8137-4c6e-b505-cea05ea497be', 'name': 'ctest-vn-17448449', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8dd4feb8-0edc-460c-9f17-ca83c96eb46b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-17448449'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']], 'subnet_ipam': [{'subnet_cidr': '53.11.13.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-08 17:02:50,705 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '56cc6d5a-75d4-4961-b890-a33c6205d5b1', 'name': 'ctest-vn-53978492', 'tenant_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'project_id': 'bb5cbfa66f6c4731b98535f28f29f1c2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58b7420b-c8ab-488b-b77b-c307738fdab8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-vn-53978492'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365']], 'subnet_ipam': [{'subnet_cidr': '45.138.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-05-08 17:02:50,827 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:02:51,160 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:02:51,188 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:02:51,203 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:02:51,275 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,296 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:02:51,304 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:02:51,310 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6853fafb-2ae3-4745-a244-542de02670c5 2025-05-08 17:02:51,317 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-08 17:02:51,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,329 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:02:51,343 - INFO - Verified VN network id 8 for VN 7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,344 - INFO - Verifications in API Server for VN ctest-vn-17448449 passed 2025-05-08 17:02:51,344 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,353 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:02:51,360 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:02:51,367 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6853fafb-2ae3-4745-a244-542de02670c5 2025-05-08 17:02:51,380 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17792631', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8999377043426069614', 'uuid-lslong': '13044059083926443966'}, 'enable': 'true', 'created': '2025-05-08T17:02:49', 'last-modified': '2025-05-08T17:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920683'} 2025-05-08 17:02:51,387 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-05-08 17:02:51,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17448449 passed 2025-05-08 17:02:51,387 - DEBUG - ====Verifying policy data for ctest-vn-17448449 in API_Server ====== 2025-05-08 17:02:51,387 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:02:51,393 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:02:51,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:02:51,480 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7ce435bd-8137-4c6e-b505-cea05ea497be 2025-05-08 17:02:51,490 - DEBUG - ==>Verifying data for policy with id: 6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365'] 2025-05-08 17:02:51,490 - INFO - VN ctest-vn-17448449 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-08 17:02:51,491 - DEBUG - Verifying the vn in opserver 2025-05-08 17:02:51,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449 virtual network link through opserver 10.0.0.254 2025-05-08 17:02:51,491 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 17:02:51,822 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 17:02:51,877 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449?flat'} 2025-05-08 17:02:51,877 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449 is found in opserver 2025-05-08 17:02:51,889 - DEBUG - Do not have enough data to verify VN in agent 2025-05-08 17:02:51,894 - DEBUG - VRF ids for VN ctest-vn-17448449: {} 2025-05-08 17:02:51,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:02:51,901 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:02:51,913 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:02:51,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,000 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,010 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:02:52,018 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:02:52,025 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d3148fb-cc87-4058-a085-a679cebd9d63 2025-05-08 17:02:52,031 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-08 17:02:52,031 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,040 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:02:52,054 - INFO - Verified VN network id 9 for VN 56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,054 - INFO - Verifications in API Server for VN ctest-vn-53978492 passed 2025-05-08 17:02:52,054 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,064 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:02:52,071 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:02:52,078 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/7d3148fb-cc87-4058-a085-a679cebd9d63 2025-05-08 17:02:52,091 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17792631', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6254494217802107233', 'uuid-lslong': '13299309179362989489'}, 'enable': 'true', 'created': '2025-05-08T17:02:49', 'last-modified': '2025-05-08T17:02:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.406041'} 2025-05-08 17:02:52,098 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-05-08 17:02:52,098 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53978492 passed 2025-05-08 17:02:52,098 - DEBUG - ====Verifying policy data for ctest-vn-53978492 in API_Server ====== 2025-05-08 17:02:52,098 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:02:52,103 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:02:52,115 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:02:52,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/56cc6d5a-75d4-4961-b890-a33c6205d5b1 2025-05-08 17:02:52,201 - DEBUG - ==>Verifying data for policy with id: 6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f, fqn: ['default-domain', 'ctest-TestBasicPolicy-17792631', 'ctest-policy-allow-all-84803365'] 2025-05-08 17:02:52,201 - INFO - VN ctest-vn-53978492 Policy verification: verify_vn_policy_in_api_server, status: True 2025-05-08 17:02:52,201 - DEBUG - Verifying the vn in opserver 2025-05-08 17:02:52,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492 virtual network link through opserver 10.0.0.254 2025-05-08 17:02:52,201 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-05-08 17:02:52,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492?flat'} 2025-05-08 17:02:52,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-53978492 is found in opserver 2025-05-08 17:02:52,222 - DEBUG - Do not have enough data to verify VN in agent 2025-05-08 17:02:52,228 - DEBUG - VRF ids for VN ctest-vn-53978492: {} 2025-05-08 17:02:52,282 - DEBUG - Services list from nova: [, , ] 2025-05-08 17:02:53,367 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3290-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3290-1) 2025-05-08 17:02:54,705 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3290-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3290-1) 2025-05-08 17:02:54,705 - INFO - Waiting for VM ctest-TestBasicPolicy-17792631-39479676 to be up.. 2025-05-08 17:02:54,781 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-05-08 17:02:59,864 - DEBUG - VM is in ACTIVE state now 2025-05-08 17:02:59,864 - INFO - VM name : ctest-TestBasicPolicy-17792631-39479676 2025-05-08 17:02:59,940 - DEBUG - VM ctest-TestBasicPolicy-17792631-39479676 ID is 70f358b8-2934-4802-a65c-c50c22dde43e 2025-05-08 17:02:59,964 - DEBUG - VM ctest-TestBasicPolicy-17792631-39479676 launched on Node cn-jenkins-deploy-platform-ansible-os-3290-1 2025-05-08 17:03:00,049 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/70f358b8-2934-4802-a65c-c50c22dde43e 2025-05-08 17:03:00,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/908e82d5-f974-405f-82e6-1f670e1b7a78 2025-05-08 17:03:03,329 - 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 1027ms') 2025-05-08 17:03:03,329 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17792631-39479676 failed! 2025-05-08 17:03:03,391 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-17792631:ctest-vn-17448449 is 53.11.13.65 and allocation pool is NOT set 2025-05-08 17:03:05,450 - 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=11.0 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.46 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 2.458/6.719/10.980/4.261 ms') 2025-05-08 17:03:05,450 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-17792631-39479676 passed 2025-05-08 17:03:05,603 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 17:03:05,603 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17792631-39479676, IP 53.11.13.67, Port 22 2025-05-08 17:03:05,659 - 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-05-08 17:03:05,738 - DEBUG - VM ctest-TestBasicPolicy-17792631-39479676 is NOT ready for SSH connections, VM status: ACTIVE 2025-05-08 17:03:10,739 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 17:03:10,739 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17792631-39479676, IP 53.11.13.67, Port 22 2025-05-08 17:03:10,894 - DEBUG - VM ctest-TestBasicPolicy-17792631-39479676 is ready for SSH connections 2025-05-08 17:03:10,895 - INFO - Waiting for VM ctest-TestBasicPolicy-17792631-60939347 to be up.. 2025-05-08 17:03:10,982 - DEBUG - VM is in ACTIVE state now 2025-05-08 17:03:10,982 - INFO - VM name : ctest-TestBasicPolicy-17792631-60939347 2025-05-08 17:03:11,079 - DEBUG - VM ctest-TestBasicPolicy-17792631-60939347 ID is ab7a0ea7-42d7-4396-b887-2cecad754dc5 2025-05-08 17:03:11,079 - DEBUG - VM ctest-TestBasicPolicy-17792631-60939347 launched on Node cn-jenkins-deploy-platform-ansible-os-3290-1 2025-05-08 17:03:11,155 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/ab7a0ea7-42d7-4396-b887-2cecad754dc5 2025-05-08 17:03:11,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/338ec861-de1c-4ac0-ad6c-f9ba74f93afb 2025-05-08 17:03:12,416 - 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.17 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.402 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.402/1.787/3.173/1.385 ms') 2025-05-08 17:03:12,416 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-17792631-60939347 passed 2025-05-08 17:03:12,571 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 17:03:12,571 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-17792631-60939347, IP 45.138.32.195, Port 22 2025-05-08 17:03:12,727 - DEBUG - VM ctest-TestBasicPolicy-17792631-60939347 is ready for SSH connections 2025-05-08 17:03:12,727 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 17:03:12,727 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.138.32.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-08 17:03:12,727 - DEBUG - ping -s 56 -c 3 -W 1 45.138.32.195 2025-05-08 17:03:16,442 - DEBUG - PING 45.138.32.195 (45.138.32.195): 56 data bytes 64 bytes from 45.138.32.195: seq=0 ttl=63 time=3.882 ms 64 bytes from 45.138.32.195: seq=1 ttl=63 time=0.872 ms 64 bytes from 45.138.32.195: seq=2 ttl=63 time=0.789 ms --- 45.138.32.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.789/1.847/3.882 ms 2025-05-08 17:03:16,442 - INFO - Ping to IP 45.138.32.195 from VM ctest-TestBasicPolicy-17792631-39479676 passed 2025-05-08 17:03:16,631 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f", "href": "http://10.0.0.254:8082/network-policy/6e1028df-b8f2-4d2d-a2de-daa27c3b1d2f"}} 2025-05-08 17:03:16,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-05-08 17:03:16,631 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 45.138.32.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-05-08 17:03:16,631 - DEBUG - ping -s 56 -c 3 -W 1 45.138.32.195 2025-05-08 17:03:19,871 - DEBUG - PING 45.138.32.195 (45.138.32.195): 56 data bytes 64 bytes from 45.138.32.195: seq=0 ttl=63 time=1.532 ms --- 45.138.32.195 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.532/1.532/1.532 ms 2025-05-08 17:03:19,871 - WARNING - Ping to IP 45.138.32.195 from VM ctest-TestBasicPolicy-17792631-39479676 failed 2025-05-08 17:03:19,871 - INFO - Deleting VM ctest-TestBasicPolicy-17792631-60939347 2025-05-08 17:03:19,945 - INFO - Deleting VM ctest-TestBasicPolicy-17792631-39479676 2025-05-08 17:03:20,351 - INFO - Deleted policy ctest-policy-allow-all-84803365 2025-05-08 17:03:20,351 - INFO - Deleting VN ctest-vn-53978492 2025-05-08 17:03:20,391 - DEBUG - VN 56cc6d5a-75d4-4961-b890-a33c6205d5b1 still in use: Unable to complete operation on network 56cc6d5a-75d4-4961-b890-a33c6205d5b1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e75603b9-3297-4577-b0f8-47cca9684015'] 2025-05-08 17:03:20,392 - WARNING - Deleting VN ctest-vn-53978492 failed..Will retry 2025-05-08 17:03:22,498 - DEBUG - Response for deleting network () 2025-05-08 17:03:22,498 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9cfce2f-1608-41e7-9826-d74e24ad3802 2025-05-08 17:03:22,506 - DEBUG - Response Code: 404 2025-05-08 17:03:22,506 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:03:22,520 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:03:22,578 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:03:22,653 - INFO - Validated that VN ctest-vn-53978492 is not found in API Server 2025-05-08 17:03:22,664 - DEBUG - VN ctest-vn-53978492 is not present in Agent 10.0.0.254 2025-05-08 17:03:22,664 - INFO - Validated that VN ctest-vn-53978492 is not in any agent 2025-05-08 17:03:22,680 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-53978492 info 2025-05-08 17:03:22,680 - INFO - Deleting VN ctest-vn-17448449 2025-05-08 17:03:22,796 - DEBUG - Response for deleting network () 2025-05-08 17:03:22,796 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/685bf24e-f3b1-4cfa-b44c-504893f7a6de 2025-05-08 17:03:22,804 - DEBUG - Response Code: 404 2025-05-08 17:03:22,805 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-05-08 17:03:22,811 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c907f4dd-af68-4d62-b9ae-32afd76730ef 2025-05-08 17:03:22,869 - DEBUG - Requesting: http://10.0.0.254:8082/project/bb5cbfa6-6f6c-4731-b985-35f28f29f1c2 2025-05-08 17:03:22,946 - INFO - Validated that VN ctest-vn-17448449 is not found in API Server 2025-05-08 17:03:22,959 - DEBUG - VN ctest-vn-17448449 is not present in Agent 10.0.0.254 2025-05-08 17:03:22,959 - INFO - Validated that VN ctest-vn-17448449 is not in any agent 2025-05-08 17:03:22,976 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-17448449 info 2025-05-08 17:03:23,229 - DEBUG - No XMPP flaps were noticed during the test 2025-05-08 17:03:23,229 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:35] 2025-05-08 17:03:23,229 - INFO - -------------------------------------------------------------------------------- 2025-05-08 17:03:23,961 - INFO - Deleted project: ctest-TestBasicPolicy-17792631, ID : bb5cbfa6-6f6c-4731-b985-35f28f29f1c2