2025-09-15 10:50:20,029 - INFO - Domain Default found not creating 2025-09-15 10:50:20,201 - INFO - Project ctest-TestBasicPolicy-54511349 not found, creating it 2025-09-15 10:50:20,714 - INFO - Created Project:ctest-TestBasicPolicy-54511349, ID : 5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:22,327 - INFO - ================================================================================ 2025-09-15 10:50:22,327 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-09-15 10:50:22,327 - 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-09-15 10:50:22,581 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-09-15 10:50:22,581 - INFO - Initial checks done. Running the testcase now 2025-09-15 10:50:22,581 - INFO - 2025-09-15 10:50:23,192 - DEBUG - Response for create_network : {'network': {'id': '7371dcbb-853a-4766-9c77-4a59a2d7bed6', 'name': 'ctest-vn-95402309', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'project_id': '5574e1d6819f49578058c705a42e0679', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-vn-95402309'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:23,417 - DEBUG - Response for create_subnet : {'subnet': {'id': '97828413-a3ad-4ab2-b3dd-29cee086cae6', 'name': '', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'network_id': '7371dcbb-853a-4766-9c77-4a59a2d7bed6', 'ip_version': 4, 'cidr': '5.226.153.64/26', 'allocation_pools': [{'start': '5.226.153.66', 'end': '5.226.153.126'}], 'gateway_ip': '5.226.153.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.226.153.66', 'tags': [], 'project_id': '5574e1d6819f49578058c705a42e0679'}} 2025-09-15 10:50:23,440 - INFO - Created VN ctest-vn-95402309 2025-09-15 10:50:23,498 - DEBUG - VN ctest-vn-95402309 UUID is 7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:23,830 - DEBUG - Response for create_network : {'network': {'id': '4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1', 'name': 'ctest-vn-57306280', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'project_id': '5574e1d6819f49578058c705a42e0679', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-vn-57306280'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:24,042 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e00fdd4e-7a86-4e06-a0cb-310b2bf58d6e', 'name': '', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'network_id': '4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1', 'ip_version': 4, 'cidr': '218.140.7.192/26', 'allocation_pools': [{'start': '218.140.7.194', 'end': '218.140.7.254'}], 'gateway_ip': '218.140.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.140.7.194', 'tags': [], 'project_id': '5574e1d6819f49578058c705a42e0679'}} 2025-09-15 10:50:24,061 - INFO - Created VN ctest-vn-57306280 2025-09-15 10:50:24,114 - DEBUG - VN ctest-vn-57306280 UUID is 4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:24,233 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309, 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-54511349:ctest-vn-57306280, 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-09-15 10:50:24,538 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7371dcbb-853a-4766-9c77-4a59a2d7bed6', 'name': 'ctest-vn-95402309', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'project_id': '5574e1d6819f49578058c705a42e0679', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97828413-a3ad-4ab2-b3dd-29cee086cae6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-vn-95402309'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-policy-allow-all-91987022']], 'subnet_ipam': [{'subnet_cidr': '5.226.153.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:24,820 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1', 'name': 'ctest-vn-57306280', 'tenant_id': '5574e1d6819f49578058c705a42e0679', 'project_id': '5574e1d6819f49578058c705a42e0679', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e00fdd4e-7a86-4e06-a0cb-310b2bf58d6e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-vn-57306280'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-policy-allow-all-91987022']], 'subnet_ipam': [{'subnet_cidr': '218.140.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 10:50:24,986 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:25,321 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:25,351 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:25,365 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:25,439 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,454 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,463 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:25,471 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:25,480 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5cee356f-d8fe-4b19-b769-6ccb5d517aee 2025-09-15 10:50:25,488 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 10:50:25,488 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,498 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:25,513 - INFO - Verified VN network id 11 for VN 7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,513 - INFO - Verifications in API Server for VN ctest-vn-95402309 passed 2025-09-15 10:50:25,513 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,523 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:25,530 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:25,536 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5cee356f-d8fe-4b19-b769-6ccb5d517aee 2025-09-15 10:50:25,548 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54511349', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8318672684682200934', 'uuid-lslong': '11274561940989918934'}, 'enable': 'true', 'created': '2025-09-15T10:50:23', 'last-modified': '2025-09-15T10:50:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.036569'} 2025-09-15 10:50:25,554 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 10:50:25,555 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95402309 passed 2025-09-15 10:50:25,555 - DEBUG - ====Verifying policy data for ctest-vn-95402309 in API_Server ====== 2025-09-15 10:50:25,555 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:25,562 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:25,576 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:25,654 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7371dcbb-853a-4766-9c77-4a59a2d7bed6 2025-09-15 10:50:25,666 - DEBUG - ==>Verifying data for policy with id: 277861b6-817c-4534-b8b7-e1fc4e7cec94, fqn: ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-policy-allow-all-91987022'] 2025-09-15 10:50:25,666 - INFO - VN ctest-vn-95402309 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 10:50:25,666 - DEBUG - Verifying the vn in opserver 2025-09-15 10:50:25,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309 virtual network link through opserver 10.0.0.50 2025-09-15 10:50:25,666 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-15 10:50:26,003 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-15 10:50:26,067 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309?flat'} 2025-09-15 10:50:26,067 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309 is found in opserver 2025-09-15 10:50:26,078 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 10:50:26,083 - DEBUG - VRF ids for VN ctest-vn-95402309: {} 2025-09-15 10:50:26,083 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:26,088 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:26,102 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:26,173 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,186 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,196 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:26,204 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:26,212 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef9b6ed7-014b-4bf0-926c-b9012339b29d 2025-09-15 10:50:26,220 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 10:50:26,220 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:26,247 - INFO - Verified VN network id 12 for VN 4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,247 - INFO - Verifications in API Server for VN ctest-vn-57306280 passed 2025-09-15 10:50:26,247 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:26,266 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:26,274 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ef9b6ed7-014b-4bf0-926c-b9012339b29d 2025-09-15 10:50:26,286 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-57306280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54511349', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5705102784275235804', 'uuid-lslong': '12370857014573197745'}, 'enable': 'true', 'created': '2025-09-15T10:50:23', 'last-modified': '2025-09-15T10:50:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535665'} 2025-09-15 10:50:26,292 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-09-15 10:50:26,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57306280 passed 2025-09-15 10:50:26,292 - DEBUG - ====Verifying policy data for ctest-vn-57306280 in API_Server ====== 2025-09-15 10:50:26,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:26,299 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:26,310 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:26,380 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 2025-09-15 10:50:26,390 - DEBUG - ==>Verifying data for policy with id: 277861b6-817c-4534-b8b7-e1fc4e7cec94, fqn: ['default-domain', 'ctest-TestBasicPolicy-54511349', 'ctest-policy-allow-all-91987022'] 2025-09-15 10:50:26,390 - INFO - VN ctest-vn-57306280 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 10:50:26,391 - DEBUG - Verifying the vn in opserver 2025-09-15 10:50:26,391 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-57306280 virtual network link through opserver 10.0.0.50 2025-09-15 10:50:26,391 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-15 10:50:26,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-57306280', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-57306280?flat'} 2025-09-15 10:50:26,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-57306280 is found in opserver 2025-09-15 10:50:26,414 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 10:50:26,419 - DEBUG - VRF ids for VN ctest-vn-57306280: {} 2025-09-15 10:50:26,485 - DEBUG - Services list from nova: [, , ] 2025-09-15 10:50:27,639 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4113-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4113-1) 2025-09-15 10:50:28,935 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-4113-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-4113-1) 2025-09-15 10:50:28,935 - INFO - Waiting for VM ctest-TestBasicPolicy-54511349-39279741 to be up.. 2025-09-15 10:50:29,024 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-09-15 10:50:34,109 - DEBUG - VM is in ACTIVE state now 2025-09-15 10:50:34,109 - INFO - VM name : ctest-TestBasicPolicy-54511349-39279741 2025-09-15 10:50:34,193 - DEBUG - VM ctest-TestBasicPolicy-54511349-39279741 ID is a067d84a-aadd-43f8-b979-02e81534d915 2025-09-15 10:50:34,215 - DEBUG - VM ctest-TestBasicPolicy-54511349-39279741 launched on Node cn-jenkins-deploy-platform-ansible-os-4113-1 2025-09-15 10:50:34,295 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a067d84a-aadd-43f8-b979-02e81534d915 2025-09-15 10:50:34,305 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/71682bfa-3574-4afa-9a7a-8ed17497e9ce 2025-09-15 10:50:37,566 - 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 1026ms') 2025-09-15 10:50:37,566 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54511349-39279741 failed! 2025-09-15 10:50:37,622 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54511349:ctest-vn-95402309 is 5.226.153.65 and allocation pool is NOT set 2025-09-15 10:50:39,690 - 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=7.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.25 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 = 3.245/5.482/7.719/2.237 ms') 2025-09-15 10:50:39,690 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54511349-39279741 passed 2025-09-15 10:50:39,846 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 10:50:39,846 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54511349-39279741, IP 5.226.153.67, Port 22 2025-09-15 10:50:39,912 - 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-09-15 10:50:39,999 - DEBUG - VM ctest-TestBasicPolicy-54511349-39279741 is NOT ready for SSH connections, VM status: ACTIVE 2025-09-15 10:50:45,000 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 10:50:45,000 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54511349-39279741, IP 5.226.153.67, Port 22 2025-09-15 10:50:45,158 - DEBUG - VM ctest-TestBasicPolicy-54511349-39279741 is ready for SSH connections 2025-09-15 10:50:45,158 - INFO - Waiting for VM ctest-TestBasicPolicy-54511349-24570747 to be up.. 2025-09-15 10:50:45,243 - DEBUG - VM is in ACTIVE state now 2025-09-15 10:50:45,243 - INFO - VM name : ctest-TestBasicPolicy-54511349-24570747 2025-09-15 10:50:45,338 - DEBUG - VM ctest-TestBasicPolicy-54511349-24570747 ID is a76f9b77-802d-4682-8ab1-ee4ba6f9ee77 2025-09-15 10:50:45,338 - DEBUG - VM ctest-TestBasicPolicy-54511349-24570747 launched on Node cn-jenkins-deploy-platform-ansible-os-4113-1 2025-09-15 10:50:45,420 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/a76f9b77-802d-4682-8ab1-ee4ba6f9ee77 2025-09-15 10:50:45,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/46736896-d6ca-4d0a-9ffb-41a2b21594d1 2025-09-15 10:50:46,672 - 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.65 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.459 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 0.459/2.055/3.651/1.596 ms') 2025-09-15 10:50:46,672 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54511349-24570747 passed 2025-09-15 10:50:46,826 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 10:50:46,826 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54511349-24570747, IP 218.140.7.195, Port 22 2025-09-15 10:50:46,981 - DEBUG - VM ctest-TestBasicPolicy-54511349-24570747 is ready for SSH connections 2025-09-15 10:50:46,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 10:50:46,982 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.140.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-09-15 10:50:46,982 - DEBUG - ping -s 56 -c 3 -W 1 218.140.7.195 2025-09-15 10:50:51,199 - DEBUG - PING 218.140.7.195 (218.140.7.195): 56 data bytes 64 bytes from 218.140.7.195: seq=0 ttl=63 time=4.219 ms 64 bytes from 218.140.7.195: seq=1 ttl=63 time=1.135 ms 64 bytes from 218.140.7.195: seq=2 ttl=63 time=0.852 ms --- 218.140.7.195 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.852/2.068/4.219 ms 2025-09-15 10:50:51,199 - INFO - Ping to IP 218.140.7.195 from VM ctest-TestBasicPolicy-54511349-39279741 passed 2025-09-15 10:50:51,386 - DEBUG - Policy Update Response {"network-policy": {"uuid": "277861b6-817c-4534-b8b7-e1fc4e7cec94", "href": "http://10.0.0.50:8082/network-policy/277861b6-817c-4534-b8b7-e1fc4e7cec94"}} 2025-09-15 10:50:51,386 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-09-15 10:50:51,386 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.140.7.195, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.50, gateway password: c0ntrail123 2025-09-15 10:50:51,386 - DEBUG - ping -s 56 -c 3 -W 1 218.140.7.195 2025-09-15 10:50:54,622 - DEBUG - PING 218.140.7.195 (218.140.7.195): 56 data bytes --- 218.140.7.195 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-09-15 10:50:54,622 - WARNING - Ping to IP 218.140.7.195 from VM ctest-TestBasicPolicy-54511349-39279741 failed 2025-09-15 10:50:54,622 - INFO - Deleting VM ctest-TestBasicPolicy-54511349-24570747 2025-09-15 10:50:54,701 - INFO - Deleting VM ctest-TestBasicPolicy-54511349-39279741 2025-09-15 10:50:55,142 - INFO - Deleted policy ctest-policy-allow-all-91987022 2025-09-15 10:50:55,142 - INFO - Deleting VN ctest-vn-57306280 2025-09-15 10:50:55,192 - DEBUG - VN 4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1 still in use: Unable to complete operation on network 4f2c98c1-5fd1-43dc-abae-1ce940c8e9b1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0037fc96-23e8-4a5d-ab15-57be54e1fd13'] 2025-09-15 10:50:55,192 - WARNING - Deleting VN ctest-vn-57306280 failed..Will retry 2025-09-15 10:50:57,305 - DEBUG - Response for deleting network () 2025-09-15 10:50:57,305 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8d393a30-f715-4ec0-bfc7-96a2f78d8c11 2025-09-15 10:50:57,318 - DEBUG - Response Code: 404 2025-09-15 10:50:57,318 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:57,324 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:57,380 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:57,458 - INFO - Validated that VN ctest-vn-57306280 is not found in API Server 2025-09-15 10:50:57,470 - DEBUG - VN ctest-vn-57306280 is not present in Agent 10.0.0.50 2025-09-15 10:50:57,470 - INFO - Validated that VN ctest-vn-57306280 is not in any agent 2025-09-15 10:50:57,488 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57306280 info 2025-09-15 10:50:57,488 - INFO - Deleting VN ctest-vn-95402309 2025-09-15 10:50:57,605 - DEBUG - Response for deleting network () 2025-09-15 10:50:57,605 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/64fd8d1e-1b7b-417e-830b-ad8bdc147c1f 2025-09-15 10:50:57,611 - DEBUG - Response Code: 404 2025-09-15 10:50:57,612 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-15 10:50:57,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73426bb0-1088-4b0e-af19-1f29ea1afaf9 2025-09-15 10:50:57,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/5574e1d6-819f-4957-8058-c705a42e0679 2025-09-15 10:50:57,752 - INFO - Validated that VN ctest-vn-95402309 is not found in API Server 2025-09-15 10:50:57,763 - DEBUG - VN ctest-vn-95402309 is not present in Agent 10.0.0.50 2025-09-15 10:50:57,763 - INFO - Validated that VN ctest-vn-95402309 is not in any agent 2025-09-15 10:50:57,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95402309 info 2025-09-15 10:50:58,035 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 10:50:58,035 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-09-15 10:50:58,035 - INFO - -------------------------------------------------------------------------------- 2025-09-15 10:50:58,782 - INFO - Deleted project: ctest-TestBasicPolicy-54511349, ID : 5574e1d6-819f-4957-8058-c705a42e0679