2025-12-01 02:40:13,130 - INFO - Domain Default found not creating 2025-12-01 02:40:13,339 - INFO - Project ctest-TestBasicPolicy-50177276 not found, creating it 2025-12-01 02:40:13,910 - INFO - Created Project:ctest-TestBasicPolicy-50177276, ID : d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:40:15,675 - INFO - ================================================================================ 2025-12-01 02:40:15,676 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-12-01 02:40:15,676 - 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-12-01 02:40:16,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0', '10.20.0.192': '0'}, '10.0.0.241': {'10.20.0.209': '0', '10.20.0.192': '0'}} with 2025-12-01 02:40:16,991 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:40:16,991 - INFO - 2025-12-01 02:40:17,774 - DEBUG - Response for create_network : {'network': {'id': '7a393039-d68d-4311-84e1-8f8c636c436c', 'name': 'ctest-vn-27197888', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-vn-27197888'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:40:18,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f0cb67d-e0cf-4de6-afbd-bd8ca0382df7', 'name': '', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'network_id': '7a393039-d68d-4311-84e1-8f8c636c436c', 'ip_version': 4, 'cidr': '104.146.201.0/26', 'allocation_pools': [{'start': '104.146.201.2', 'end': '104.146.201.62'}], 'gateway_ip': '104.146.201.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.146.201.2', 'tags': [], 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f'}} 2025-12-01 02:40:18,100 - INFO - Created VN ctest-vn-27197888 2025-12-01 02:40:18,114 - DEBUG - VN ctest-vn-27197888 UUID is 7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:18,534 - DEBUG - Response for create_network : {'network': {'id': '8924aafa-665c-4e87-8921-270c0b74ca24', 'name': 'ctest-vn-33069704', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-vn-33069704'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:40:18,740 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d3303ce-39a7-4f1e-af3d-0fa6d814bf12', 'name': '', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'network_id': '8924aafa-665c-4e87-8921-270c0b74ca24', 'ip_version': 4, 'cidr': '218.80.237.128/26', 'allocation_pools': [{'start': '218.80.237.130', 'end': '218.80.237.190'}], 'gateway_ip': '218.80.237.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.80.237.130', 'tags': [], 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f'}} 2025-12-01 02:40:18,766 - INFO - Created VN ctest-vn-33069704 2025-12-01 02:40:18,781 - DEBUG - VN ctest-vn-33069704 UUID is 8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:18,868 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888, 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-50177276:ctest-vn-33069704, 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-12-01 02:40:19,220 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a393039-d68d-4311-84e1-8f8c636c436c', 'name': 'ctest-vn-27197888', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f0cb67d-e0cf-4de6-afbd-bd8ca0382df7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-vn-27197888'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-policy-allow-all-03788585']], 'subnet_ipam': [{'subnet_cidr': '104.146.201.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:40:19,445 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8924aafa-665c-4e87-8921-270c0b74ca24', 'name': 'ctest-vn-33069704', 'tenant_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'project_id': 'd3e5d9e66ccc445fbefc26eae491200f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d3303ce-39a7-4f1e-af3d-0fa6d814bf12'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-vn-33069704'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-policy-allow-all-03788585']], 'subnet_ipam': [{'subnet_cidr': '218.80.237.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:40:19,567 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:40:19,936 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:40:19,985 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:40:20,002 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:40:20,100 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,121 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,150 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:40:20,162 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:40:20,172 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea43efc5-79e5-4ee9-84c4-12e610b94206 2025-12-01 02:40:20,182 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:40:20,182 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,200 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:40:20,221 - INFO - Verified VN network id 13 for VN 7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,221 - INFO - Verifications in API Server for VN ctest-vn-27197888 passed 2025-12-01 02:40:20,221 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,232 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:40:20,241 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:40:20,251 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ea43efc5-79e5-4ee9-84c4-12e610b94206 2025-12-01 02:40:20,267 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8807123571270566673', 'uuid-lslong': '9575092115892618092'}, 'enable': 'true', 'created': '2025-12-01T02:40:17', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.092334'} 2025-12-01 02:40:20,273 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:40:20,278 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8807123571270566673', 'uuid-lslong': '9575092115892618092'}, 'enable': 'true', 'created': '2025-12-01T02:40:17', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.097943'} 2025-12-01 02:40:20,285 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:40:20,291 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8807123571270566673', 'uuid-lslong': '9575092115892618092'}, 'enable': 'true', 'created': '2025-12-01T02:40:17', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111055'} 2025-12-01 02:40:20,298 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:40:20,298 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27197888 passed 2025-12-01 02:40:20,298 - DEBUG - ====Verifying policy data for ctest-vn-27197888 in API_Server ====== 2025-12-01 02:40:20,298 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:40:20,306 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:40:20,319 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:40:20,417 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7a393039-d68d-4311-84e1-8f8c636c436c 2025-12-01 02:40:20,430 - DEBUG - ==>Verifying data for policy with id: 947bf687-a188-4b4d-8440-8e6642c5d88a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-policy-allow-all-03788585'] 2025-12-01 02:40:20,430 - INFO - VN ctest-vn-27197888 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 02:40:20,430 - DEBUG - Verifying the vn in opserver 2025-12-01 02:40:20,430 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 virtual network link through opserver 10.0.0.27 2025-12-01 02:40:20,430 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-01 02:40:20,786 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-01 02:40:20,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888?flat'} 2025-12-01 02:40:20,894 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 virtual network link through opserver 10.0.0.33 2025-12-01 02:40:20,894 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-01 02:40:21,243 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-01 02:40:21,314 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888?flat'} 2025-12-01 02:40:21,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 virtual network link through opserver 10.0.0.23 2025-12-01 02:40:21,314 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-01 02:40:21,662 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-01 02:40:21,733 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888?flat'} 2025-12-01 02:40:21,733 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is found in opserver 2025-12-01 02:40:21,757 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 02:40:21,770 - DEBUG - VRF ids for VN ctest-vn-27197888: {} 2025-12-01 02:40:21,770 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:40:21,778 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:40:21,791 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:40:21,885 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:21,899 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:21,910 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:40:21,921 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:40:21,930 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9e1d0b1d-c89c-405c-87a7-89e611352214 2025-12-01 02:40:21,937 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-01 02:40:21,937 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:21,947 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:40:21,964 - INFO - Verified VN network id 14 for VN 8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:21,964 - INFO - Verifications in API Server for VN ctest-vn-33069704 passed 2025-12-01 02:40:21,964 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:21,975 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:40:21,983 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:40:21,991 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/9e1d0b1d-c89c-405c-87a7-89e611352214 2025-12-01 02:40:22,004 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9882211474793582215', 'uuid-lslong': '9881221990112872996'}, 'enable': 'true', 'created': '2025-12-01T02:40:18', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.593507'} 2025-12-01 02:40:22,011 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-01 02:40:22,018 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9882211474793582215', 'uuid-lslong': '9881221990112872996'}, 'enable': 'true', 'created': '2025-12-01T02:40:18', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.605706'} 2025-12-01 02:40:22,025 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-01 02:40:22,033 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-50177276', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9882211474793582215', 'uuid-lslong': '9881221990112872996'}, 'enable': 'true', 'created': '2025-12-01T02:40:18', 'last-modified': '2025-12-01T02:40:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.618720'} 2025-12-01 02:40:22,041 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-12-01 02:40:22,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33069704 passed 2025-12-01 02:40:22,041 - DEBUG - ====Verifying policy data for ctest-vn-33069704 in API_Server ====== 2025-12-01 02:40:22,041 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:40:22,048 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:40:22,060 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:40:22,159 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/8924aafa-665c-4e87-8921-270c0b74ca24 2025-12-01 02:40:22,170 - DEBUG - ==>Verifying data for policy with id: 947bf687-a188-4b4d-8440-8e6642c5d88a, fqn: ['default-domain', 'ctest-TestBasicPolicy-50177276', 'ctest-policy-allow-all-03788585'] 2025-12-01 02:40:22,170 - INFO - VN ctest-vn-33069704 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 02:40:22,170 - DEBUG - Verifying the vn in opserver 2025-12-01 02:40:22,170 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704 virtual network link through opserver 10.0.0.27 2025-12-01 02:40:22,170 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-01 02:40:22,236 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704?flat'} 2025-12-01 02:40:22,236 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704 virtual network link through opserver 10.0.0.33 2025-12-01 02:40:22,236 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-01 02:40:22,302 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704?flat'} 2025-12-01 02:40:22,302 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704 virtual network link through opserver 10.0.0.23 2025-12-01 02:40:22,302 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-01 02:40:22,392 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704?flat'} 2025-12-01 02:40:22,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-33069704 is found in opserver 2025-12-01 02:40:22,414 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 02:40:22,425 - DEBUG - VRF ids for VN ctest-vn-33069704: {} 2025-12-01 02:40:22,497 - DEBUG - Services list from nova: [, , , ] 2025-12-01 02:40:23,888 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4827-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4827-1) 2025-12-01 02:40:25,381 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4827-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4827-2) 2025-12-01 02:40:25,381 - INFO - Waiting for VM ctest-TestBasicPolicy-50177276-06155809 to be up.. 2025-12-01 02:40:25,495 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-12-01 02:40:30,601 - DEBUG - VM is in ACTIVE state now 2025-12-01 02:40:30,601 - INFO - VM name : ctest-TestBasicPolicy-50177276-06155809 2025-12-01 02:40:30,731 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 ID is 9dce6b1c-9aa4-4c80-9cfd-d4d5f34d718a 2025-12-01 02:40:30,765 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 launched on Node an-jenkins-deploy-platform-ansible-os-4827-1 2025-12-01 02:40:30,869 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9dce6b1c-9aa4-4c80-9cfd-d4d5f34d718a 2025-12-01 02:40:31,213 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/9dce6b1c-9aa4-4c80-9cfd-d4d5f34d718a 2025-12-01 02:40:31,254 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/d1260b13-883b-40ba-9b82-185a4004b742 2025-12-01 02:40:34,428 - 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 1019ms') 2025-12-01 02:40:34,428 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:34,444 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:38,532 - 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 1021ms') 2025-12-01 02:40:38,532 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:38,553 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:42,618 - 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 1007ms') 2025-12-01 02:40:42,618 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:42,636 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:46,719 - 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 1022ms') 2025-12-01 02:40:46,719 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:46,735 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:50,817 - 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 1019ms') 2025-12-01 02:40:50,817 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:50,835 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:54,911 - 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 1015ms') 2025-12-01 02:40:54,912 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:54,930 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:40:59,003 - 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') 2025-12-01 02:40:59,003 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:40:59,022 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:41:03,107 - 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') 2025-12-01 02:41:03,107 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 failed! 2025-12-01 02:41:03,123 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-50177276:ctest-vn-27197888 is 104.146.201.1 and allocation pool is NOT set 2025-12-01 02:41:05,195 - 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=10.5 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.72 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.723/6.627/10.532/3.904 ms') 2025-12-01 02:41:05,195 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-06155809 passed 2025-12-01 02:41:05,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:05,268 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-06155809, IP 104.146.201.3, Port 22 2025-12-01 02:41:05,335 - 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': ''} 2025-12-01 02:41:05,423 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 02:41:10,424 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:10,424 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-06155809, IP 104.146.201.3, Port 22 2025-12-01 02:41:10,491 - 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': ''} 2025-12-01 02:41:10,589 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 02:41:15,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:15,590 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-06155809, IP 104.146.201.3, Port 22 2025-12-01 02:41:15,663 - 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': ''} 2025-12-01 02:41:15,760 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 02:41:20,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:20,761 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-06155809, IP 104.146.201.3, Port 22 2025-12-01 02:41:20,817 - 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': ''} 2025-12-01 02:41:20,910 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 is NOT ready for SSH connections, VM status: ACTIVE 2025-12-01 02:41:25,911 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:25,911 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-06155809, IP 104.146.201.3, Port 22 2025-12-01 02:41:26,091 - DEBUG - VM ctest-TestBasicPolicy-50177276-06155809 is ready for SSH connections 2025-12-01 02:41:26,091 - INFO - Waiting for VM ctest-TestBasicPolicy-50177276-55826131 to be up.. 2025-12-01 02:41:26,185 - DEBUG - VM is in ACTIVE state now 2025-12-01 02:41:26,185 - INFO - VM name : ctest-TestBasicPolicy-50177276-55826131 2025-12-01 02:41:26,265 - DEBUG - VM ctest-TestBasicPolicy-50177276-55826131 ID is db19df07-09df-4a79-8028-6cd084a4c066 2025-12-01 02:41:26,266 - DEBUG - VM ctest-TestBasicPolicy-50177276-55826131 launched on Node an-jenkins-deploy-platform-ansible-os-4827-2 2025-12-01 02:41:26,352 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/db19df07-09df-4a79-8028-6cd084a4c066 2025-12-01 02:41:26,363 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/7508cefe-3ad3-4eb3-bbfd-169a139103ce 2025-12-01 02:41:27,533 - 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.67 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.643 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.643/2.154/3.665/1.511 ms') 2025-12-01 02:41:27,533 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-50177276-55826131 passed 2025-12-01 02:41:27,610 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:27,610 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-50177276-55826131, IP 218.80.237.131, Port 22 2025-12-01 02:41:27,781 - DEBUG - VM ctest-TestBasicPolicy-50177276-55826131 is ready for SSH connections 2025-12-01 02:41:27,781 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:27,781 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.80.237.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-12-01 02:41:27,782 - DEBUG - ping -s 56 -c 3 -W 1 218.80.237.131 2025-12-01 02:41:51,056 - DEBUG - PING 218.80.237.131 (218.80.237.131) 56(84) bytes of data. 64 bytes from 218.80.237.131: icmp_req=1 ttl=63 time=10.5 ms 64 bytes from 218.80.237.131: icmp_req=2 ttl=63 time=1.23 ms 64 bytes from 218.80.237.131: icmp_req=3 ttl=63 time=1.01 ms --- 218.80.237.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.011/4.266/10.551/4.445 ms 2025-12-01 02:41:51,057 - INFO - Ping to IP 218.80.237.131 from VM ctest-TestBasicPolicy-50177276-06155809 passed 2025-12-01 02:41:51,302 - DEBUG - Policy Update Response {"network-policy": {"uuid": "947bf687-a188-4b4d-8440-8e6642c5d88a", "href": "http://10.0.0.23:8082/network-policy/947bf687-a188-4b4d-8440-8e6642c5d88a"}} 2025-12-01 02:41:51,302 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-12-01 02:41:51,302 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 218.80.237.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.22, gateway password: c0ntrail123 2025-12-01 02:41:51,302 - DEBUG - ping -s 56 -c 3 -W 1 218.80.237.131 2025-12-01 02:41:55,229 - DEBUG - PING 218.80.237.131 (218.80.237.131) 56(84) bytes of data. --- 218.80.237.131 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms 2025-12-01 02:41:55,230 - WARNING - Ping to IP 218.80.237.131 from VM ctest-TestBasicPolicy-50177276-06155809 failed 2025-12-01 02:41:55,230 - INFO - Deleting VM ctest-TestBasicPolicy-50177276-55826131 2025-12-01 02:41:55,314 - INFO - Deleting VM ctest-TestBasicPolicy-50177276-06155809 2025-12-01 02:41:55,810 - INFO - Deleted policy ctest-policy-allow-all-03788585 2025-12-01 02:41:55,810 - INFO - Deleting VN ctest-vn-33069704 2025-12-01 02:41:55,882 - DEBUG - VN 8924aafa-665c-4e87-8921-270c0b74ca24 still in use: Unable to complete operation on network 8924aafa-665c-4e87-8921-270c0b74ca24. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-9c7edcb0-c652-4905-9efd-9a07dc5701a4'] 2025-12-01 02:41:55,883 - WARNING - Deleting VN ctest-vn-33069704 failed..Will retry 2025-12-01 02:41:58,049 - DEBUG - Response for deleting network () 2025-12-01 02:41:58,049 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aca220eb-fccc-4d09-b6ed-b5fb0acbe913 2025-12-01 02:41:58,055 - DEBUG - Response Code: 404 2025-12-01 02:41:58,055 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:41:58,060 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:41:58,128 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:41:58,238 - INFO - Validated that VN ctest-vn-33069704 is not found in API Server 2025-12-01 02:41:58,248 - DEBUG - VN ctest-vn-33069704 is not present in Agent 10.0.0.22 2025-12-01 02:41:58,258 - DEBUG - VN ctest-vn-33069704 is not present in Agent 10.0.0.241 2025-12-01 02:41:58,258 - INFO - Validated that VN ctest-vn-33069704 is not in any agent 2025-12-01 02:41:58,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-33069704 info 2025-12-01 02:41:58,290 - INFO - Deleting VN ctest-vn-27197888 2025-12-01 02:41:58,477 - DEBUG - Response for deleting network () 2025-12-01 02:41:58,477 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/63a5a900-9bb4-43a3-a704-b065f18fda75 2025-12-01 02:41:58,485 - DEBUG - Response Code: 404 2025-12-01 02:41:58,485 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:41:58,504 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:41:58,533 - DEBUG - Requesting: http://10.0.0.27:8082/project/d3e5d9e6-6ccc-445f-befc-26eae491200f 2025-12-01 02:41:58,660 - INFO - Validated that VN ctest-vn-27197888 is not found in API Server 2025-12-01 02:41:58,670 - DEBUG - VN ctest-vn-27197888 is not present in Agent 10.0.0.22 2025-12-01 02:41:58,680 - DEBUG - VN ctest-vn-27197888 is not present in Agent 10.0.0.241 2025-12-01 02:41:58,680 - INFO - Validated that VN ctest-vn-27197888 is not in any agent 2025-12-01 02:41:58,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-27197888 info 2025-12-01 02:41:59,987 - DEBUG - No XMPP flaps were noticed during the test
2025-12-01 02:41:59,987 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:44]
2025-12-01 02:41:59,987 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:42:00,848 - INFO - Deleted project: ctest-TestBasicPolicy-50177276, ID : d3e5d9e6-6ccc-445f-befc-26eae491200f