2025-01-02 02:26:55,557 - INFO - Domain Default found not creating 2025-01-02 02:26:55,717 - INFO - Project ctest-TestBasicPolicy-38091261 not found, creating it 2025-01-02 02:26:56,209 - INFO - Created Project:ctest-TestBasicPolicy-38091261, ID : 4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:26:57,793 - INFO - ================================================================================ 2025-01-02 02:26:57,793 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-02 02:26:57,793 - 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-01-02 02:26:58,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.0.0.35': '0'}} with 2025-01-02 02:26:58,050 - INFO - Initial checks done. Running the testcase now 2025-01-02 02:26:58,050 - INFO - 2025-01-02 02:26:58,670 - DEBUG - Response for create_network : {'network': {'id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'name': 'ctest-vn-81031065', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-81031065'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 02:26:58,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be635477-d93c-47f9-81ae-d1ae760cdb7f', 'name': '', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'network_id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'ip_version': 4, 'cidr': '142.143.214.64/26', 'allocation_pools': [{'start': '142.143.214.66', 'end': '142.143.214.126'}], 'gateway_ip': '142.143.214.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.143.214.66', 'tags': [], 'project_id': '4f4badc4a57e4bc395a38e3765b66b50'}} 2025-01-02 02:26:58,890 - INFO - Created VN ctest-vn-81031065 2025-01-02 02:26:58,943 - DEBUG - VN ctest-vn-81031065 UUID is 19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:26:59,249 - DEBUG - Response for create_network : {'network': {'id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'name': 'ctest-vn-42503976', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-42503976'], 'port_security_enabled': True, 'description': ''}} 2025-01-02 02:26:59,473 - DEBUG - Response for create_subnet : {'subnet': {'id': '78ca53b0-2266-4913-8c89-f219f4cb23ab', 'name': '', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'network_id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'ip_version': 4, 'cidr': '183.207.122.64/26', 'allocation_pools': [{'start': '183.207.122.66', 'end': '183.207.122.126'}], 'gateway_ip': '183.207.122.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.207.122.66', 'tags': [], 'project_id': '4f4badc4a57e4bc395a38e3765b66b50'}} 2025-01-02 02:26:59,494 - INFO - Created VN ctest-vn-42503976 2025-01-02 02:26:59,547 - DEBUG - VN ctest-vn-42503976 UUID is e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:26:59,670 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065, 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-38091261:ctest-vn-42503976, 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-01-02 02:26:59,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19a14cf2-66f6-44a1-996e-dd8d25ef20f6', 'name': 'ctest-vn-81031065', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['be635477-d93c-47f9-81ae-d1ae760cdb7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-81031065'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']], 'subnet_ipam': [{'subnet_cidr': '142.143.214.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 02:27:00,241 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3bbab29-0973-42cf-99c0-daa7e43a0dde', 'name': 'ctest-vn-42503976', 'tenant_id': '4f4badc4a57e4bc395a38e3765b66b50', 'project_id': '4f4badc4a57e4bc395a38e3765b66b50', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78ca53b0-2266-4913-8c89-f219f4cb23ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-vn-42503976'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932']], 'subnet_ipam': [{'subnet_cidr': '183.207.122.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-02 02:27:00,415 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:00,758 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:00,792 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:00,809 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:00,892 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:00,909 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:00,922 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:00,933 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:00,943 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d5214cbd-cc08-4bcc-903e-b3f82e6d7ae1 2025-01-02 02:27:00,954 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 02:27:00,954 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:00,968 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:00,987 - INFO - Verified VN network id 9 for VN 19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:00,988 - INFO - Verifications in API Server for VN ctest-vn-81031065 passed 2025-01-02 02:27:00,988 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:01,001 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:01,012 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:01,021 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/d5214cbd-cc08-4bcc-903e-b3f82e6d7ae1 2025-01-02 02:27:01,036 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38091261', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1846841926191826081', 'uuid-lslong': '11056017733537702134'}, 'enable': 'true', 'created': '2025-01-02T02:26:58', 'last-modified': '2025-01-02T02:26:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.076871'} 2025-01-02 02:27:01,045 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-02 02:27:01,045 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81031065 passed 2025-01-02 02:27:01,045 - DEBUG - ====Verifying policy data for ctest-vn-81031065 in API_Server ====== 2025-01-02 02:27:01,045 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:01,053 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:01,068 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:01,146 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/19a14cf2-66f6-44a1-996e-dd8d25ef20f6 2025-01-02 02:27:01,160 - DEBUG - ==>Verifying data for policy with id: 385b6860-8fc7-46d2-9c51-dfa391951fe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932'] 2025-01-02 02:27:01,160 - INFO - VN ctest-vn-81031065 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 02:27:01,160 - DEBUG - Verifying the vn in opserver 2025-01-02 02:27:01,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065 virtual network link through opserver 10.0.0.35 2025-01-02 02:27:01,160 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-02 02:27:01,502 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-02 02:27:01,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065?flat'} 2025-01-02 02:27:01,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065 is found in opserver 2025-01-02 02:27:01,596 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 02:27:01,602 - DEBUG - VRF ids for VN ctest-vn-81031065: {} 2025-01-02 02:27:01,602 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:01,609 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:01,622 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:01,701 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,716 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,727 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:01,736 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:01,747 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60827fcc-3165-4274-afb3-1defa06d97c3 2025-01-02 02:27:01,758 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 02:27:01,758 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,773 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:01,795 - INFO - Verified VN network id 10 for VN e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,796 - INFO - Verifications in API Server for VN ctest-vn-42503976 passed 2025-01-02 02:27:01,796 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,810 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:01,820 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:01,829 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/60827fcc-3165-4274-afb3-1defa06d97c3 2025-01-02 02:27:01,845 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-38091261', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16409897859995091663', 'uuid-lslong': '11079095497954823646'}, 'enable': 'true', 'created': '2025-01-02T02:26:59', 'last-modified': '2025-01-02T02:27:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.631458'} 2025-01-02 02:27:01,852 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-01-02 02:27:01,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42503976 passed 2025-01-02 02:27:01,852 - DEBUG - ====Verifying policy data for ctest-vn-42503976 in API_Server ====== 2025-01-02 02:27:01,852 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:01,859 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:01,876 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:01,959 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/e3bbab29-0973-42cf-99c0-daa7e43a0dde 2025-01-02 02:27:01,973 - DEBUG - ==>Verifying data for policy with id: 385b6860-8fc7-46d2-9c51-dfa391951fe6, fqn: ['default-domain', 'ctest-TestBasicPolicy-38091261', 'ctest-policy-allow-all-99522932'] 2025-01-02 02:27:01,973 - INFO - VN ctest-vn-42503976 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-02 02:27:01,973 - DEBUG - Verifying the vn in opserver 2025-01-02 02:27:01,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976 virtual network link through opserver 10.0.0.35 2025-01-02 02:27:01,973 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks 2025-01-02 02:27:01,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976?flat'} 2025-01-02 02:27:01,987 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-42503976 is found in opserver 2025-01-02 02:27:02,000 - DEBUG - Do not have enough data to verify VN in agent 2025-01-02 02:27:02,006 - DEBUG - VRF ids for VN ctest-vn-42503976: {} 2025-01-02 02:27:02,071 - DEBUG - Services list from nova: [, , ] 2025-01-02 02:27:03,248 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2509-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2509-1) 2025-01-02 02:27:04,659 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2509-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2509-1) 2025-01-02 02:27:04,660 - INFO - Waiting for VM ctest-TestBasicPolicy-38091261-37402367 to be up.. 2025-01-02 02:27:04,770 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-02 02:27:09,872 - DEBUG - VM is in ACTIVE state now 2025-01-02 02:27:09,872 - INFO - VM name : ctest-TestBasicPolicy-38091261-37402367 2025-01-02 02:27:09,972 - DEBUG - VM ctest-TestBasicPolicy-38091261-37402367 ID is 48b90854-3f4f-47e1-b3bd-f43c28b7ffa5 2025-01-02 02:27:09,993 - DEBUG - VM ctest-TestBasicPolicy-38091261-37402367 launched on Node cn-jenkins-deploy-platform-ansible-os-2509-1. 2025-01-02 02:27:10,076 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/48b90854-3f4f-47e1-b3bd-f43c28b7ffa5 2025-01-02 02:27:10,087 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/db38a61b-e3e7-4335-a926-8591e86a28cd 2025-01-02 02:27:13,339 - 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 1002ms') 2025-01-02 02:27:13,339 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38091261-37402367 failed! 2025-01-02 02:27:13,399 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-38091261:ctest-vn-81031065 is 142.143.214.65 and allocation pool is NOT set 2025-01-02 02:27:15,476 - 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=9.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.42 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 = 2.415/6.043/9.671/3.628 ms') 2025-01-02 02:27:15,476 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-38091261-37402367 passed 2025-01-02 02:27:15,631 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:27:15,631 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38091261-37402367, IP 142.143.214.67, Port 22 2025-01-02 02:27:15,698 - 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-01-02 02:27:15,785 - DEBUG - VM ctest-TestBasicPolicy-38091261-37402367 is NOT ready for SSH connections, VM status: ACTIVE 2025-01-02 02:27:20,786 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:27:20,786 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38091261-37402367, IP 142.143.214.67, Port 22 2025-01-02 02:27:20,942 - DEBUG - VM ctest-TestBasicPolicy-38091261-37402367 is ready for SSH connections 2025-01-02 02:27:20,942 - INFO - Waiting for VM ctest-TestBasicPolicy-38091261-72838516 to be up.. 2025-01-02 02:27:21,027 - DEBUG - VM is in ACTIVE state now 2025-01-02 02:27:21,028 - INFO - VM name : ctest-TestBasicPolicy-38091261-72838516 2025-01-02 02:27:21,119 - DEBUG - VM ctest-TestBasicPolicy-38091261-72838516 ID is 1bce3323-a6b3-441f-8c67-ba8fbb2c3c44 2025-01-02 02:27:21,119 - DEBUG - VM ctest-TestBasicPolicy-38091261-72838516 launched on Node cn-jenkins-deploy-platform-ansible-os-2509-1. 2025-01-02 02:27:21,201 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine/1bce3323-a6b3-441f-8c67-ba8fbb2c3c44 2025-01-02 02:27:21,211 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-machine-interface/e6e16149-579f-4952-a0f1-e687d2bf6a07 2025-01-02 02:27:22,463 - 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.35 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.433 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.433/1.892/3.352/1.459 ms') 2025-01-02 02:27:22,464 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-38091261-72838516 passed 2025-01-02 02:27:22,619 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:27:22,619 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-38091261-72838516, IP 183.207.122.67, Port 22 2025-01-02 02:27:22,779 - DEBUG - VM ctest-TestBasicPolicy-38091261-72838516 is ready for SSH connections 2025-01-02 02:27:22,779 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:27:22,779 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.207.122.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-02 02:27:22,779 - DEBUG - ping -s 56 -c 3 -W 1 183.207.122.67 2025-01-02 02:27:26,847 - DEBUG - PING 183.207.122.67 (183.207.122.67): 56 data bytes 64 bytes from 183.207.122.67: seq=0 ttl=63 time=3.745 ms 64 bytes from 183.207.122.67: seq=1 ttl=63 time=0.983 ms 64 bytes from 183.207.122.67: seq=2 ttl=63 time=0.966 ms --- 183.207.122.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.966/1.898/3.745 ms 2025-01-02 02:27:26,847 - INFO - Ping to IP 183.207.122.67 from VM ctest-TestBasicPolicy-38091261-37402367 passed 2025-01-02 02:27:27,027 - DEBUG - Policy Update Response {"network-policy": {"uuid": "385b6860-8fc7-46d2-9c51-dfa391951fe6", "href": "http://10.0.0.35:8082/network-policy/385b6860-8fc7-46d2-9c51-dfa391951fe6"}} 2025-01-02 02:27:27,027 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-02 02:27:27,027 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 183.207.122.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.35, gateway password: c0ntrail123 2025-01-02 02:27:27,027 - DEBUG - ping -s 56 -c 3 -W 1 183.207.122.67 2025-01-02 02:27:30,245 - DEBUG - PING 183.207.122.67 (183.207.122.67): 56 data bytes 64 bytes from 183.207.122.67: seq=0 ttl=63 time=1.517 ms --- 183.207.122.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.517/1.517/1.517 ms 2025-01-02 02:27:30,246 - WARNING - Ping to IP 183.207.122.67 from VM ctest-TestBasicPolicy-38091261-37402367 failed 2025-01-02 02:27:30,246 - INFO - Deleting VM ctest-TestBasicPolicy-38091261-72838516 2025-01-02 02:27:30,319 - INFO - Deleting VM ctest-TestBasicPolicy-38091261-37402367 2025-01-02 02:27:30,725 - INFO - Deleted policy ctest-policy-allow-all-99522932 2025-01-02 02:27:30,726 - INFO - Deleting VN ctest-vn-42503976 2025-01-02 02:27:30,779 - DEBUG - VN e3bbab29-0973-42cf-99c0-daa7e43a0dde still in use: Unable to complete operation on network e3bbab29-0973-42cf-99c0-daa7e43a0dde. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-80357d84-01ba-491f-b062-d4b8357758e9'] 2025-01-02 02:27:30,779 - WARNING - Deleting VN ctest-vn-42503976 failed..Will retry 2025-01-02 02:27:32,893 - DEBUG - Response for deleting network () 2025-01-02 02:27:32,894 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/4358900d-ea4c-49cf-b1cf-f380e8d4a37e 2025-01-02 02:27:32,899 - DEBUG - Response Code: 404 2025-01-02 02:27:32,900 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:32,910 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:32,971 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:33,044 - INFO - Validated that VN ctest-vn-42503976 is not found in API Server 2025-01-02 02:27:33,056 - DEBUG - VN ctest-vn-42503976 is not present in Agent 10.0.0.35 2025-01-02 02:27:33,057 - INFO - Validated that VN ctest-vn-42503976 is not in any agent 2025-01-02 02:27:33,075 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-42503976 info 2025-01-02 02:27:33,075 - INFO - Deleting VN ctest-vn-81031065 2025-01-02 02:27:33,179 - DEBUG - Response for deleting network () 2025-01-02 02:27:33,179 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/184d837e-0e3d-47ee-ab07-1dd7fd48f989 2025-01-02 02:27:33,191 - DEBUG - Response Code: 404 2025-01-02 02:27:33,192 - DEBUG - Requesting: http://10.0.0.35:8082/domains 2025-01-02 02:27:33,198 - DEBUG - Requesting: http://10.0.0.35:8082/domain/2afbfd83-1fcc-482a-9608-ad9bb9881c64 2025-01-02 02:27:33,253 - DEBUG - Requesting: http://10.0.0.35:8082/project/4f4badc4-a57e-4bc3-95a3-8e3765b66b50 2025-01-02 02:27:33,332 - INFO - Validated that VN ctest-vn-81031065 is not found in API Server 2025-01-02 02:27:33,344 - DEBUG - VN ctest-vn-81031065 is not present in Agent 10.0.0.35 2025-01-02 02:27:33,344 - INFO - Validated that VN ctest-vn-81031065 is not in any agent 2025-01-02 02:27:33,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-81031065 info 2025-01-02 02:27:33,626 - DEBUG - No XMPP flaps were noticed during the test
2025-01-02 02:27:33,626 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:36]
2025-01-02 02:27:33,627 - INFO - -------------------------------------------------------------------------------- 2025-01-02 02:27:34,359 - INFO - Deleted project: ctest-TestBasicPolicy-38091261, ID : 4f4badc4-a57e-4bc3-95a3-8e3765b66b50