2026-05-28 02:46:59,450 - INFO - Domain Default found not creating 2026-05-28 02:46:59,671 - INFO - Project ctest-TestBasicPolicy-89208172 not found, creating it 2026-05-28 02:47:00,435 - INFO - Created Project:ctest-TestBasicPolicy-89208172, ID : aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:47:02,402 - INFO - ================================================================================ 2026-05-28 02:47:02,402 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-05-28 02:47:02,403 - 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 2026-05-28 02:47:03,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.49': {'10.20.0.249': '0', '10.20.0.19': '0'}} with 2026-05-28 02:47:03,727 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:47:03,727 - INFO - 2026-05-28 02:47:04,541 - DEBUG - Response for create_network : {'network': {'id': '80315dd6-f51d-4ce0-beff-60bae79e95dc', 'name': 'ctest-vn-46880930', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-vn-46880930'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:47:04,845 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eccf56d6-8444-47f6-b169-8bc3f9592ca4', 'name': '', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'network_id': '80315dd6-f51d-4ce0-beff-60bae79e95dc', 'ip_version': 4, 'cidr': '215.239.96.192/26', 'allocation_pools': [{'start': '215.239.96.194', 'end': '215.239.96.254'}], 'gateway_ip': '215.239.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.239.96.194', 'tags': [], 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25'}} 2026-05-28 02:47:04,886 - INFO - Created VN ctest-vn-46880930 2026-05-28 02:47:04,905 - DEBUG - VN ctest-vn-46880930 UUID is 80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:05,345 - DEBUG - Response for create_network : {'network': {'id': 'd3d95777-89e0-4cff-825a-08add1f0058f', 'name': 'ctest-vn-48103152', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-vn-48103152'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:47:05,593 - DEBUG - Response for create_subnet : {'subnet': {'id': '6a876ab9-63d5-4b75-9ccc-03fdc1ca67ab', 'name': '', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'network_id': 'd3d95777-89e0-4cff-825a-08add1f0058f', 'ip_version': 4, 'cidr': '95.150.9.0/26', 'allocation_pools': [{'start': '95.150.9.2', 'end': '95.150.9.62'}], 'gateway_ip': '95.150.9.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.150.9.2', 'tags': [], 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25'}} 2026-05-28 02:47:05,622 - INFO - Created VN ctest-vn-48103152 2026-05-28 02:47:05,639 - DEBUG - VN ctest-vn-48103152 UUID is d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:05,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930, 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-89208172:ctest-vn-48103152, 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] 2026-05-28 02:47:06,088 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '80315dd6-f51d-4ce0-beff-60bae79e95dc', 'name': 'ctest-vn-46880930', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eccf56d6-8444-47f6-b169-8bc3f9592ca4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-vn-46880930'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-policy-allow-all-18549468']], 'subnet_ipam': [{'subnet_cidr': '215.239.96.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:47:06,312 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3d95777-89e0-4cff-825a-08add1f0058f', 'name': 'ctest-vn-48103152', 'tenant_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'project_id': 'aeda2c9435fa409da42fc6437f9d2f25', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6a876ab9-63d5-4b75-9ccc-03fdc1ca67ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-vn-48103152'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-policy-allow-all-18549468']], 'subnet_ipam': [{'subnet_cidr': '95.150.9.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:47:06,428 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:47:06,748 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:47:06,783 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:47:06,802 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:47:06,918 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:06,941 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:06,951 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:47:06,960 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:47:06,970 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/389b81a2-62a8-4593-92f6-fc5ee93b5c9b 2026-05-28 02:47:06,981 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:47:06,981 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:06,994 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:47:07,015 - INFO - Verified VN network id 11 for VN 80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:07,016 - INFO - Verifications in API Server for VN ctest-vn-46880930 passed 2026-05-28 02:47:07,016 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:07,036 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:47:07,047 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:47:07,058 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/389b81a2-62a8-4593-92f6-fc5ee93b5c9b 2026-05-28 02:47:07,075 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9237267488530320608', 'uuid-lslong': '13762825342133638620'}, 'enable': 'true', 'created': '2026-05-28T02:47:04', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.033281'} 2026-05-28 02:47:07,083 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:47:07,090 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9237267488530320608', 'uuid-lslong': '13762825342133638620'}, 'enable': 'true', 'created': '2026-05-28T02:47:04', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.041175'} 2026-05-28 02:47:07,099 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:47:07,106 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9237267488530320608', 'uuid-lslong': '13762825342133638620'}, 'enable': 'true', 'created': '2026-05-28T02:47:04', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065436'} 2026-05-28 02:47:07,114 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:47:07,114 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46880930 passed 2026-05-28 02:47:07,115 - DEBUG - ====Verifying policy data for ctest-vn-46880930 in API_Server ====== 2026-05-28 02:47:07,115 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:47:07,124 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:47:07,139 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:47:07,261 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/80315dd6-f51d-4ce0-beff-60bae79e95dc 2026-05-28 02:47:07,278 - DEBUG - ==>Verifying data for policy with id: d8a6a4c0-2b30-41ac-ad4e-bd1284338d8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-policy-allow-all-18549468'] 2026-05-28 02:47:07,278 - INFO - VN ctest-vn-46880930 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:47:07,278 - DEBUG - Verifying the vn in opserver 2026-05-28 02:47:07,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 virtual network link through opserver 10.0.0.133 2026-05-28 02:47:07,278 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-05-28 02:47:07,604 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-05-28 02:47:07,700 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930?flat'} 2026-05-28 02:47:07,700 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 virtual network link through opserver 10.0.0.41 2026-05-28 02:47:07,700 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-28 02:47:08,011 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-28 02:47:08,110 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930?flat'} 2026-05-28 02:47:08,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 virtual network link through opserver 10.0.0.131 2026-05-28 02:47:08,110 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-28 02:47:08,416 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-28 02:47:08,491 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930?flat'} 2026-05-28 02:47:08,491 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is found in opserver 2026-05-28 02:47:08,517 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:47:08,532 - DEBUG - VRF ids for VN ctest-vn-46880930: {} 2026-05-28 02:47:08,533 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:47:08,540 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:47:08,553 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:47:08,654 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,668 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,680 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:47:08,689 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:47:08,699 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/a89d0fff-c883-45b5-ab47-e25cc16432ab 2026-05-28 02:47:08,708 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-28 02:47:08,708 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,719 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:47:08,742 - INFO - Verified VN network id 12 for VN d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,743 - INFO - Verifications in API Server for VN ctest-vn-48103152 passed 2026-05-28 02:47:08,743 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,756 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:47:08,765 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:47:08,774 - DEBUG - Requesting: http://10.0.0.133:8082/route-target/a89d0fff-c883-45b5-ab47-e25cc16432ab 2026-05-28 02:47:08,788 - DEBUG - Control-node 10.0.0.133 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15265328582874909951', 'uuid-lslong': '9392829515479123343'}, 'enable': 'true', 'created': '2026-05-28T02:47:05', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.510954'} 2026-05-28 02:47:08,794 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-28 02:47:08,800 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15265328582874909951', 'uuid-lslong': '9392829515479123343'}, 'enable': 'true', 'created': '2026-05-28T02:47:05', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.519055'} 2026-05-28 02:47:08,808 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-28 02:47:08,815 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89208172', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15265328582874909951', 'uuid-lslong': '9392829515479123343'}, 'enable': 'true', 'created': '2026-05-28T02:47:05', 'last-modified': '2026-05-28T02:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.534733'} 2026-05-28 02:47:08,823 - DEBUG - Route Targets: ['target:64512:8000006'] 2026-05-28 02:47:08,823 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48103152 passed 2026-05-28 02:47:08,823 - DEBUG - ====Verifying policy data for ctest-vn-48103152 in API_Server ====== 2026-05-28 02:47:08,824 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:47:08,832 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:47:08,846 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:47:08,950 - DEBUG - Requesting: http://10.0.0.133:8082/virtual-network/d3d95777-89e0-4cff-825a-08add1f0058f 2026-05-28 02:47:08,965 - DEBUG - ==>Verifying data for policy with id: d8a6a4c0-2b30-41ac-ad4e-bd1284338d8d, fqn: ['default-domain', 'ctest-TestBasicPolicy-89208172', 'ctest-policy-allow-all-18549468'] 2026-05-28 02:47:08,965 - INFO - VN ctest-vn-48103152 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:47:08,965 - DEBUG - Verifying the vn in opserver 2026-05-28 02:47:08,965 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152 virtual network link through opserver 10.0.0.133 2026-05-28 02:47:08,965 - DEBUG - Requesting: http://10.0.0.133:8081/analytics/uves/virtual-networks 2026-05-28 02:47:09,038 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'href': 'http://10.0.0.133:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152?flat'} 2026-05-28 02:47:09,038 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152 virtual network link through opserver 10.0.0.41 2026-05-28 02:47:09,038 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-28 02:47:09,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152?flat'} 2026-05-28 02:47:09,119 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152 virtual network link through opserver 10.0.0.131 2026-05-28 02:47:09,119 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-05-28 02:47:09,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152?flat'} 2026-05-28 02:47:09,188 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-48103152 is found in opserver 2026-05-28 02:47:09,217 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:47:09,230 - DEBUG - VRF ids for VN ctest-vn-48103152: {} 2026-05-28 02:47:09,317 - DEBUG - Services list from nova: [, , , ] 2026-05-28 02:47:10,463 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5841-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5841-1) 2026-05-28 02:47:11,997 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5841-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5841-2) 2026-05-28 02:47:11,998 - INFO - Waiting for VM ctest-TestBasicPolicy-89208172-93199252 to be up.. 2026-05-28 02:47:12,118 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-05-28 02:47:17,229 - DEBUG - VM is in ACTIVE state now 2026-05-28 02:47:17,229 - INFO - VM name : ctest-TestBasicPolicy-89208172-93199252 2026-05-28 02:47:17,327 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 ID is d9daad5d-dc9c-4fed-9da7-16b61e30a22e 2026-05-28 02:47:17,357 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 launched on Node an-jenkins-deploy-platform-ansible-os-5841-1 2026-05-28 02:47:17,455 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d9daad5d-dc9c-4fed-9da7-16b61e30a22e 2026-05-28 02:47:17,770 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d9daad5d-dc9c-4fed-9da7-16b61e30a22e 2026-05-28 02:47:17,814 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/99cd0259-9bb9-43e8-a2c4-6f53ccdd092c 2026-05-28 02:47:21,019 - 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 1030ms') 2026-05-28 02:47:21,019 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:21,036 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:25,116 - 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 1018ms') 2026-05-28 02:47:25,116 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:25,133 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:29,217 - 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 1018ms') 2026-05-28 02:47:29,217 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:29,231 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:33,306 - 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 1012ms') 2026-05-28 02:47:33,306 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:33,322 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:37,407 - 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 1017ms') 2026-05-28 02:47:37,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:37,427 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:41,509 - 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 1010ms') 2026-05-28 02:47:41,510 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:41,532 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:45,635 - 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 1028ms') 2026-05-28 02:47:45,635 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:45,651 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:49,731 - 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 1012ms') 2026-05-28 02:47:49,731 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 failed! 2026-05-28 02:47:49,749 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-89208172:ctest-vn-46880930 is 215.239.96.193 and allocation pool is NOT set 2026-05-28 02:47:53,822 - 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=2 ttl=63 time=7.41 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1008ms\r\nrtt min/avg/max/mdev = 7.408/7.408/7.408/0.000 ms') 2026-05-28 02:47:53,822 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-93199252 passed 2026-05-28 02:47:53,900 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:47:53,900 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-93199252, IP 215.239.96.195, Port 22 2026-05-28 02:47:53,967 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-28 02:47:54,079 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-28 02:47:59,080 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:47:59,080 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-93199252, IP 215.239.96.195, Port 22 2026-05-28 02:47:59,137 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-28 02:47:59,245 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-28 02:48:04,246 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:04,246 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-93199252, IP 215.239.96.195, Port 22 2026-05-28 02:48:04,315 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-28 02:48:04,417 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-28 02:48:09,418 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:09,418 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-93199252, IP 215.239.96.195, Port 22 2026-05-28 02:48:09,487 - DEBUG - Error on ssh to ubuntu@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': ''} 2026-05-28 02:48:09,616 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 is NOT ready for SSH connections, VM status: ACTIVE 2026-05-28 02:48:14,617 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:14,617 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-93199252, IP 215.239.96.195, Port 22 2026-05-28 02:48:14,786 - DEBUG - VM ctest-TestBasicPolicy-89208172-93199252 is ready for SSH connections 2026-05-28 02:48:14,786 - INFO - Waiting for VM ctest-TestBasicPolicy-89208172-48392575 to be up.. 2026-05-28 02:48:14,899 - DEBUG - VM is in ACTIVE state now 2026-05-28 02:48:14,900 - INFO - VM name : ctest-TestBasicPolicy-89208172-48392575 2026-05-28 02:48:15,003 - DEBUG - VM ctest-TestBasicPolicy-89208172-48392575 ID is 36687e33-7275-44c9-b785-1a7504d33a68 2026-05-28 02:48:15,003 - DEBUG - VM ctest-TestBasicPolicy-89208172-48392575 launched on Node an-jenkins-deploy-platform-ansible-os-5841-2 2026-05-28 02:48:15,117 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/36687e33-7275-44c9-b785-1a7504d33a68 2026-05-28 02:48:15,130 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/50d4b6cf-3632-405b-94bf-06d27f809733 2026-05-28 02:48:16,365 - 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=3.76 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.54 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 = 2.542/3.151/3.761/0.609 ms') 2026-05-28 02:48:16,365 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-89208172-48392575 passed 2026-05-28 02:48:16,443 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:16,443 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-89208172-48392575, IP 95.150.9.3, Port 22 2026-05-28 02:48:16,618 - DEBUG - VM ctest-TestBasicPolicy-89208172-48392575 is ready for SSH connections 2026-05-28 02:48:16,618 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:16,618 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.150.9.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2026-05-28 02:48:16,618 - DEBUG - ping -s 56 -c 3 -W 1 95.150.9.3 2026-05-28 02:48:44,743 - DEBUG - PING 95.150.9.3 (95.150.9.3) 56(84) bytes of data. 64 bytes from 95.150.9.3: icmp_req=1 ttl=63 time=11.8 ms 64 bytes from 95.150.9.3: icmp_req=2 ttl=63 time=1.44 ms 64 bytes from 95.150.9.3: icmp_req=3 ttl=63 time=1.28 ms --- 95.150.9.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2009ms rtt min/avg/max/mdev = 1.288/4.847/11.812/4.925 ms 2026-05-28 02:48:44,743 - INFO - Ping to IP 95.150.9.3 from VM ctest-TestBasicPolicy-89208172-93199252 passed 2026-05-28 02:48:45,037 - DEBUG - Policy Update Response {"network-policy": {"uuid": "d8a6a4c0-2b30-41ac-ad4e-bd1284338d8d", "href": "http://10.0.0.131:8082/network-policy/d8a6a4c0-2b30-41ac-ad4e-bd1284338d8d"}} 2026-05-28 02:48:45,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-05-28 02:48:45,038 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 95.150.9.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.48, gateway password: c0ntrail123 2026-05-28 02:48:45,038 - DEBUG - ping -s 56 -c 3 -W 1 95.150.9.3 2026-05-28 02:48:48,576 - DEBUG - PING 95.150.9.3 (95.150.9.3) 56(84) bytes of data. 64 bytes from 95.150.9.3: icmp_req=1 ttl=63 time=3.07 ms --- 95.150.9.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2003ms rtt min/avg/max/mdev = 3.076/3.076/3.076/0.000 ms 2026-05-28 02:48:48,576 - WARNING - Ping to IP 95.150.9.3 from VM ctest-TestBasicPolicy-89208172-93199252 failed 2026-05-28 02:48:48,577 - INFO - Deleting VM ctest-TestBasicPolicy-89208172-48392575 2026-05-28 02:48:48,687 - INFO - Deleting VM ctest-TestBasicPolicy-89208172-93199252 2026-05-28 02:48:49,208 - INFO - Deleted policy ctest-policy-allow-all-18549468 2026-05-28 02:48:49,208 - INFO - Deleting VN ctest-vn-48103152 2026-05-28 02:48:49,315 - DEBUG - VN d3d95777-89e0-4cff-825a-08add1f0058f still in use: Unable to complete operation on network d3d95777-89e0-4cff-825a-08add1f0058f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-f611737d-09a9-479a-8cd1-2684c395aabd'] 2026-05-28 02:48:49,315 - WARNING - Deleting VN ctest-vn-48103152 failed..Will retry 2026-05-28 02:48:51,604 - DEBUG - Response for deleting network () 2026-05-28 02:48:51,605 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/604920d1-8fc9-4bc0-9a84-581ca9f4d4ac 2026-05-28 02:48:51,618 - DEBUG - Response Code: 404 2026-05-28 02:48:51,618 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:48:51,629 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:48:51,648 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:48:51,758 - INFO - Validated that VN ctest-vn-48103152 is not found in API Server 2026-05-28 02:48:51,771 - DEBUG - VN ctest-vn-48103152 is not present in Agent 10.0.0.48 2026-05-28 02:48:51,783 - DEBUG - VN ctest-vn-48103152 is not present in Agent 10.0.0.49 2026-05-28 02:48:51,783 - INFO - Validated that VN ctest-vn-48103152 is not in any agent 2026-05-28 02:48:51,821 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-48103152 info 2026-05-28 02:48:51,821 - INFO - Deleting VN ctest-vn-46880930 2026-05-28 02:48:52,075 - DEBUG - Response for deleting network () 2026-05-28 02:48:52,075 - DEBUG - Requesting: http://10.0.0.133:8082/routing-instance/e347a38b-d512-4be1-a102-f6d44e727aee 2026-05-28 02:48:52,091 - DEBUG - Response Code: 404 2026-05-28 02:48:52,091 - DEBUG - Requesting: http://10.0.0.133:8082/domains 2026-05-28 02:48:52,099 - DEBUG - Requesting: http://10.0.0.133:8082/domain/b78f3d96-9484-4108-bfa1-c06500362770 2026-05-28 02:48:52,155 - DEBUG - Requesting: http://10.0.0.133:8082/project/aeda2c94-35fa-409d-a42f-c6437f9d2f25 2026-05-28 02:48:52,268 - INFO - Validated that VN ctest-vn-46880930 is not found in API Server 2026-05-28 02:48:52,279 - DEBUG - VN ctest-vn-46880930 is not present in Agent 10.0.0.48 2026-05-28 02:48:52,290 - DEBUG - VN ctest-vn-46880930 is not present in Agent 10.0.0.49 2026-05-28 02:48:52,290 - INFO - Validated that VN ctest-vn-46880930 is not in any agent 2026-05-28 02:48:52,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-46880930 info 2026-05-28 02:48:53,627 - DEBUG - No XMPP flaps were noticed during the test
2026-05-28 02:48:53,627 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:51]
2026-05-28 02:48:53,628 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:48:54,430 - INFO - Deleted project: ctest-TestBasicPolicy-89208172, ID : aeda2c94-35fa-409d-a42f-c6437f9d2f25