2024-10-29 22:21:23,069 - INFO - Domain Default found not creating 2024-10-29 22:21:23,263 - INFO - Project ctest-TestBasicPolicy-54143920 not found, creating it 2024-10-29 22:21:23,772 - INFO - Created Project:ctest-TestBasicPolicy-54143920, ID : 5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:21:25,596 - INFO - ================================================================================ 2024-10-29 22:21:25,596 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-10-29 22:21:25,596 - 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 2024-10-29 22:21:25,872 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.14': '0'}} with 2024-10-29 22:21:25,872 - INFO - Initial checks done. Running the testcase now 2024-10-29 22:21:25,872 - INFO - 2024-10-29 22:21:26,546 - DEBUG - Response for create_network : {'network': {'id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'name': 'ctest-vn-06197431', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-06197431'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 22:21:26,805 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c5115444-c6a3-498d-912f-56283334de1a', 'name': '', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'network_id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'ip_version': 4, 'cidr': '93.168.91.64/26', 'allocation_pools': [{'start': '93.168.91.66', 'end': '93.168.91.126'}], 'gateway_ip': '93.168.91.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.168.91.66', 'tags': [], 'project_id': '5ccb0045ab404ce09a22bc413fbf7611'}} 2024-10-29 22:21:26,838 - INFO - Created VN ctest-vn-06197431 2024-10-29 22:21:26,898 - DEBUG - VN ctest-vn-06197431 UUID is bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:27,258 - DEBUG - Response for create_network : {'network': {'id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'name': 'ctest-vn-08438082', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-08438082'], 'port_security_enabled': True, 'description': ''}} 2024-10-29 22:21:27,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '5748fe93-6e41-49be-8c76-f7adea3b8e21', 'name': '', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'network_id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'ip_version': 4, 'cidr': '105.37.157.128/26', 'allocation_pools': [{'start': '105.37.157.130', 'end': '105.37.157.190'}], 'gateway_ip': '105.37.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '105.37.157.130', 'tags': [], 'project_id': '5ccb0045ab404ce09a22bc413fbf7611'}} 2024-10-29 22:21:27,516 - INFO - Created VN ctest-vn-08438082 2024-10-29 22:21:27,574 - DEBUG - VN ctest-vn-08438082 UUID is 00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:27,707 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431, 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-54143920:ctest-vn-08438082, 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] 2024-10-29 22:21:28,083 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bdd9610d-c086-4398-8be0-3ffb98c4fcba', 'name': 'ctest-vn-06197431', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c5115444-c6a3-498d-912f-56283334de1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-06197431'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']], 'subnet_ipam': [{'subnet_cidr': '93.168.91.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 22:21:28,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00e596ed-c6ad-471d-a737-e378bc92ff92', 'name': 'ctest-vn-08438082', 'tenant_id': '5ccb0045ab404ce09a22bc413fbf7611', 'project_id': '5ccb0045ab404ce09a22bc413fbf7611', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5748fe93-6e41-49be-8c76-f7adea3b8e21'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-vn-08438082'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486']], 'subnet_ipam': [{'subnet_cidr': '105.37.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-10-29 22:21:28,566 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:21:28,927 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:21:29,293 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:21:29,319 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:21:29,405 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,423 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,439 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:21:29,450 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:21:29,463 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/27bf2e25-0745-4912-821d-86036829cd6a 2024-10-29 22:21:29,474 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 22:21:29,474 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,491 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:21:29,517 - INFO - Verified VN network id 8 for VN bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,517 - INFO - Verifications in API Server for VN ctest-vn-06197431 passed 2024-10-29 22:21:29,517 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,534 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:21:29,546 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:21:29,558 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/27bf2e25-0745-4912-821d-86036829cd6a 2024-10-29 22:21:29,576 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54143920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13680072054807085976', 'uuid-lslong': '10079126315887557818'}, 'enable': 'true', 'created': '2024-10-29T22:21:26', 'last-modified': '2024-10-29T22:21:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.533055'} 2024-10-29 22:21:29,584 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-10-29 22:21:29,585 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06197431 passed 2024-10-29 22:21:29,585 - DEBUG - ====Verifying policy data for ctest-vn-06197431 in API_Server ====== 2024-10-29 22:21:29,585 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:21:29,594 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:21:29,610 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:21:29,716 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/bdd9610d-c086-4398-8be0-3ffb98c4fcba 2024-10-29 22:21:29,733 - DEBUG - ==>Verifying data for policy with id: 7a477588-30ed-4245-8274-63d9ac8420a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486'] 2024-10-29 22:21:29,733 - INFO - VN ctest-vn-06197431 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 22:21:29,733 - DEBUG - Verifying the vn in opserver 2024-10-29 22:21:29,733 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431 virtual network link through opserver 10.0.0.29 2024-10-29 22:21:29,733 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 22:21:30,361 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 22:21:30,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431?flat'} 2024-10-29 22:21:30,462 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431 is found in opserver 2024-10-29 22:21:30,476 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 22:21:30,482 - DEBUG - VRF ids for VN ctest-vn-06197431: {} 2024-10-29 22:21:30,482 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:21:30,491 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:21:30,508 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:21:30,614 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,634 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,650 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:21:30,660 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:21:30,671 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b91a369d-6c56-4e9f-861b-e8e07c79f02e 2024-10-29 22:21:30,679 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 22:21:30,679 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,695 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:21:30,718 - INFO - Verified VN network id 9 for VN 00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,718 - INFO - Verifications in API Server for VN ctest-vn-08438082 passed 2024-10-29 22:21:30,719 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,735 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:21:30,745 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:21:30,756 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/b91a369d-6c56-4e9f-861b-e8e07c79f02e 2024-10-29 22:21:30,775 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54143920', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '64623717651400477', 'uuid-lslong': '12049349435752382354'}, 'enable': 'true', 'created': '2024-10-29T22:21:27', 'last-modified': '2024-10-29T22:21:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.413627'} 2024-10-29 22:21:30,783 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-10-29 22:21:30,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08438082 passed 2024-10-29 22:21:30,784 - DEBUG - ====Verifying policy data for ctest-vn-08438082 in API_Server ====== 2024-10-29 22:21:30,784 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:21:30,792 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:21:30,808 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:21:30,911 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/00e596ed-c6ad-471d-a737-e378bc92ff92 2024-10-29 22:21:30,931 - DEBUG - ==>Verifying data for policy with id: 7a477588-30ed-4245-8274-63d9ac8420a4, fqn: ['default-domain', 'ctest-TestBasicPolicy-54143920', 'ctest-policy-allow-all-62809486'] 2024-10-29 22:21:30,931 - INFO - VN ctest-vn-08438082 Policy verification: verify_vn_policy_in_api_server, status: True 2024-10-29 22:21:30,931 - DEBUG - Verifying the vn in opserver 2024-10-29 22:21:30,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082 virtual network link through opserver 10.0.0.29 2024-10-29 22:21:30,931 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks 2024-10-29 22:21:30,945 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082?flat'} 2024-10-29 22:21:30,945 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-08438082 is found in opserver 2024-10-29 22:21:30,963 - DEBUG - Do not have enough data to verify VN in agent 2024-10-29 22:21:30,972 - DEBUG - VRF ids for VN ctest-vn-08438082: {} 2024-10-29 22:21:31,038 - DEBUG - Services list from nova: [, , ] 2024-10-29 22:21:32,367 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2178-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2178-1) 2024-10-29 22:21:33,804 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2178-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2178-1) 2024-10-29 22:21:33,805 - INFO - Waiting for VM ctest-TestBasicPolicy-54143920-60633512 to be up.. 2024-10-29 22:21:33,937 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-10-29 22:21:39,036 - DEBUG - VM is in ACTIVE state now 2024-10-29 22:21:39,037 - INFO - VM name : ctest-TestBasicPolicy-54143920-60633512 2024-10-29 22:21:39,127 - DEBUG - VM ctest-TestBasicPolicy-54143920-60633512 ID is e6e123e0-52b8-45fc-9dd8-1d1b2b415597 2024-10-29 22:21:39,151 - DEBUG - VM ctest-TestBasicPolicy-54143920-60633512 launched on Node cn-jenkins-deploy-platform-ansible-os-2178-1 2024-10-29 22:21:39,241 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/e6e123e0-52b8-45fc-9dd8-1d1b2b415597 2024-10-29 22:21:39,253 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/c334d720-432f-4c29-af58-c33803f3fbd9 2024-10-29 22:21:42,514 - 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 1006ms') 2024-10-29 22:21:42,514 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54143920-60633512 failed! 2024-10-29 22:21:42,574 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-54143920:ctest-vn-06197431 is 93.168.91.65 and allocation pool is NOT set 2024-10-29 22:21:44,635 - 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.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.851 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 = 0.851/2.687/4.523/1.836 ms') 2024-10-29 22:21:44,635 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-54143920-60633512 passed 2024-10-29 22:21:44,798 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 22:21:44,798 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54143920-60633512, IP 93.168.91.67, Port 22 2024-10-29 22:21:44,865 - 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': ''} 2024-10-29 22:21:44,971 - DEBUG - VM ctest-TestBasicPolicy-54143920-60633512 is NOT ready for SSH connections, VM status: ACTIVE 2024-10-29 22:21:49,972 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 22:21:49,972 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54143920-60633512, IP 93.168.91.67, Port 22 2024-10-29 22:21:50,143 - DEBUG - VM ctest-TestBasicPolicy-54143920-60633512 is ready for SSH connections 2024-10-29 22:21:50,144 - INFO - Waiting for VM ctest-TestBasicPolicy-54143920-91720257 to be up.. 2024-10-29 22:21:50,247 - DEBUG - VM is in ACTIVE state now 2024-10-29 22:21:50,247 - INFO - VM name : ctest-TestBasicPolicy-54143920-91720257 2024-10-29 22:21:50,349 - DEBUG - VM ctest-TestBasicPolicy-54143920-91720257 ID is 02d3a850-74fe-44be-8967-1f37012d3491 2024-10-29 22:21:50,350 - DEBUG - VM ctest-TestBasicPolicy-54143920-91720257 launched on Node cn-jenkins-deploy-platform-ansible-os-2178-1 2024-10-29 22:21:50,448 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine/02d3a850-74fe-44be-8967-1f37012d3491 2024-10-29 22:21:50,461 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-machine-interface/f6d986fc-a8a5-4a19-aead-15b356c5ac07 2024-10-29 22:21:51,725 - 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.30 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.446 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.446/1.872/3.299/1.426 ms') 2024-10-29 22:21:51,726 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-54143920-91720257 passed 2024-10-29 22:21:51,890 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 22:21:51,890 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-54143920-91720257, IP 105.37.157.131, Port 22 2024-10-29 22:21:52,049 - DEBUG - VM ctest-TestBasicPolicy-54143920-91720257 is ready for SSH connections 2024-10-29 22:21:52,050 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 22:21:52,050 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.37.157.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-29 22:21:52,050 - DEBUG - ping -s 56 -c 3 -W 1 105.37.157.131 2024-10-29 22:21:56,265 - DEBUG - PING 105.37.157.131 (105.37.157.131): 56 data bytes 64 bytes from 105.37.157.131: seq=0 ttl=63 time=5.116 ms 64 bytes from 105.37.157.131: seq=1 ttl=63 time=1.404 ms 64 bytes from 105.37.157.131: seq=2 ttl=63 time=0.997 ms --- 105.37.157.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.997/2.505/5.116 ms 2024-10-29 22:21:56,265 - INFO - Ping to IP 105.37.157.131 from VM ctest-TestBasicPolicy-54143920-60633512 passed 2024-10-29 22:21:56,474 - DEBUG - Policy Update Response {"network-policy": {"uuid": "7a477588-30ed-4245-8274-63d9ac8420a4", "href": "http://10.0.0.29:8082/network-policy/7a477588-30ed-4245-8274-63d9ac8420a4"}} 2024-10-29 22:21:56,474 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-10-29 22:21:56,474 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 105.37.157.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.29, gateway password: c0ntrail123 2024-10-29 22:21:56,474 - DEBUG - ping -s 56 -c 3 -W 1 105.37.157.131 2024-10-29 22:21:59,701 - DEBUG - PING 105.37.157.131 (105.37.157.131): 56 data bytes --- 105.37.157.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-10-29 22:21:59,701 - WARNING - Ping to IP 105.37.157.131 from VM ctest-TestBasicPolicy-54143920-60633512 failed 2024-10-29 22:21:59,701 - INFO - Deleting VM ctest-TestBasicPolicy-54143920-91720257 2024-10-29 22:21:59,792 - INFO - Deleting VM ctest-TestBasicPolicy-54143920-60633512 2024-10-29 22:22:00,304 - INFO - Deleted policy ctest-policy-allow-all-62809486 2024-10-29 22:22:00,304 - INFO - Deleting VN ctest-vn-08438082 2024-10-29 22:22:00,363 - DEBUG - VN 00e596ed-c6ad-471d-a737-e378bc92ff92 still in use: Unable to complete operation on network 00e596ed-c6ad-471d-a737-e378bc92ff92. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-abb37c01-6cc5-472d-b593-d9d1d95066a7'] 2024-10-29 22:22:00,363 - WARNING - Deleting VN ctest-vn-08438082 failed..Will retry 2024-10-29 22:22:02,506 - DEBUG - Response for deleting network () 2024-10-29 22:22:02,507 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/6bcc7699-deb2-4df0-8d34-843a2ff4f8b5 2024-10-29 22:22:02,518 - DEBUG - Response Code: 404 2024-10-29 22:22:02,519 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:22:02,531 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:22:02,557 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:22:02,649 - INFO - Validated that VN ctest-vn-08438082 is not found in API Server 2024-10-29 22:22:02,665 - DEBUG - VN ctest-vn-08438082 is not present in Agent 10.0.0.29 2024-10-29 22:22:02,665 - INFO - Validated that VN ctest-vn-08438082 is not in any agent 2024-10-29 22:22:02,685 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-08438082 info 2024-10-29 22:22:02,685 - INFO - Deleting VN ctest-vn-06197431 2024-10-29 22:22:02,821 - DEBUG - Response for deleting network () 2024-10-29 22:22:02,821 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/2967757b-f640-4d2b-9f8f-5e479eeab7aa 2024-10-29 22:22:02,827 - DEBUG - Response Code: 404 2024-10-29 22:22:02,827 - DEBUG - Requesting: http://10.0.0.29:8082/domains 2024-10-29 22:22:02,836 - DEBUG - Requesting: http://10.0.0.29:8082/domain/aa6aa673-4831-49ae-9428-4bc4ecdbf5f3 2024-10-29 22:22:02,898 - DEBUG - Requesting: http://10.0.0.29:8082/project/5ccb0045-ab40-4ce0-9a22-bc413fbf7611 2024-10-29 22:22:02,998 - INFO - Validated that VN ctest-vn-06197431 is not found in API Server 2024-10-29 22:22:03,012 - DEBUG - VN ctest-vn-06197431 is not present in Agent 10.0.0.29 2024-10-29 22:22:03,012 - INFO - Validated that VN ctest-vn-06197431 is not in any agent 2024-10-29 22:22:03,033 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-06197431 info 2024-10-29 22:22:03,295 - DEBUG - No XMPP flaps were noticed during the test
2024-10-29 22:22:03,295 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:38]
2024-10-29 22:22:03,295 - INFO - -------------------------------------------------------------------------------- 2024-10-29 22:22:04,118 - INFO - Deleted project: ctest-TestBasicPolicy-54143920, ID : 5ccb0045-ab40-4ce0-9a22-bc413fbf7611