2025-08-06 15:14:59,486 - INFO - Domain Default found not creating 2025-08-06 15:14:59,654 - INFO - Project ctest-TestBasicPolicy-70976976 not found, creating it 2025-08-06 15:15:00,345 - INFO - Created Project:ctest-TestBasicPolicy-70976976, ID : 837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:15:02,327 - INFO - ================================================================================ 2025-08-06 15:15:02,328 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-06 15:15:02,328 - 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-08-06 15:15:03,617 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.57': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-08-06 15:15:03,617 - INFO - Initial checks done. Running the testcase now 2025-08-06 15:15:03,617 - INFO - 2025-08-06 15:15:04,282 - DEBUG - Response for create_network : {'network': {'id': 'c3967d30-ca70-4d3c-8188-9d35a84fc6cd', 'name': 'ctest-vn-61837844', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'project_id': '837d58f977a84abe92df8ac08ce4f0d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-vn-61837844'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 15:15:04,625 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b74c6d04-cf65-4bc8-851b-56d128b43f2b', 'name': '', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'network_id': 'c3967d30-ca70-4d3c-8188-9d35a84fc6cd', 'ip_version': 4, 'cidr': '198.135.243.128/26', 'allocation_pools': [{'start': '198.135.243.130', 'end': '198.135.243.190'}], 'gateway_ip': '198.135.243.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.135.243.130', 'tags': [], 'project_id': '837d58f977a84abe92df8ac08ce4f0d7'}} 2025-08-06 15:15:04,653 - INFO - Created VN ctest-vn-61837844 2025-08-06 15:15:04,666 - DEBUG - VN ctest-vn-61837844 UUID is c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:05,041 - DEBUG - Response for create_network : {'network': {'id': 'd1f392c2-31dd-4dc7-9105-eaab2ecb0ad1', 'name': 'ctest-vn-95046012', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'project_id': '837d58f977a84abe92df8ac08ce4f0d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-vn-95046012'], 'port_security_enabled': True, 'description': ''}} 2025-08-06 15:15:05,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '10f72ca7-b08f-4bee-a37d-c49a9c40929c', 'name': '', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'network_id': 'd1f392c2-31dd-4dc7-9105-eaab2ecb0ad1', 'ip_version': 4, 'cidr': '31.168.87.0/26', 'allocation_pools': [{'start': '31.168.87.2', 'end': '31.168.87.62'}], 'gateway_ip': '31.168.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.168.87.2', 'tags': [], 'project_id': '837d58f977a84abe92df8ac08ce4f0d7'}} 2025-08-06 15:15:05,321 - INFO - Created VN ctest-vn-95046012 2025-08-06 15:15:05,340 - DEBUG - VN ctest-vn-95046012 UUID is d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:05,433 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844, 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-70976976:ctest-vn-95046012, 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-08-06 15:15:05,766 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3967d30-ca70-4d3c-8188-9d35a84fc6cd', 'name': 'ctest-vn-61837844', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'project_id': '837d58f977a84abe92df8ac08ce4f0d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b74c6d04-cf65-4bc8-851b-56d128b43f2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-vn-61837844'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-policy-allow-all-89335749']], 'subnet_ipam': [{'subnet_cidr': '198.135.243.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 15:15:05,981 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd1f392c2-31dd-4dc7-9105-eaab2ecb0ad1', 'name': 'ctest-vn-95046012', 'tenant_id': '837d58f977a84abe92df8ac08ce4f0d7', 'project_id': '837d58f977a84abe92df8ac08ce4f0d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10f72ca7-b08f-4bee-a37d-c49a9c40929c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-vn-95046012'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-policy-allow-all-89335749']], 'subnet_ipam': [{'subnet_cidr': '31.168.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-06 15:15:06,073 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:15:06,393 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:15:06,425 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:15:06,443 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:15:06,538 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,554 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,566 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:15:06,574 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:15:06,583 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c1f9af5e-013f-440e-a900-ca07f509f36c 2025-08-06 15:15:06,590 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 15:15:06,590 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,601 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:15:06,619 - INFO - Verified VN network id 9 for VN c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,619 - INFO - Verifications in API Server for VN ctest-vn-61837844 passed 2025-08-06 15:15:06,619 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,633 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:15:06,643 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:15:06,651 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c1f9af5e-013f-440e-a900-ca07f509f36c 2025-08-06 15:15:06,667 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14093589732410805564', 'uuid-lslong': '9333883081507981005'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.941738'} 2025-08-06 15:15:06,677 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 15:15:06,684 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14093589732410805564', 'uuid-lslong': '9333883081507981005'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.952890'} 2025-08-06 15:15:06,691 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 15:15:06,697 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14093589732410805564', 'uuid-lslong': '9333883081507981005'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965828'} 2025-08-06 15:15:06,705 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-06 15:15:06,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61837844 passed 2025-08-06 15:15:06,705 - DEBUG - ====Verifying policy data for ctest-vn-61837844 in API_Server ====== 2025-08-06 15:15:06,705 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:15:06,714 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:15:06,730 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:15:06,826 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/c3967d30-ca70-4d3c-8188-9d35a84fc6cd 2025-08-06 15:15:06,839 - DEBUG - ==>Verifying data for policy with id: 6c7fce2e-6e20-4784-821d-2d86ea9cd490, fqn: ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-policy-allow-all-89335749'] 2025-08-06 15:15:06,840 - INFO - VN ctest-vn-61837844 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 15:15:06,840 - DEBUG - Verifying the vn in opserver 2025-08-06 15:15:06,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 virtual network link through opserver 10.0.0.254 2025-08-06 15:15:06,840 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,144 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844?flat'} 2025-08-06 15:15:07,214 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 virtual network link through opserver 10.0.0.38 2025-08-06 15:15:07,214 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,513 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844?flat'} 2025-08-06 15:15:07,568 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 virtual network link through opserver 10.0.0.48 2025-08-06 15:15:07,568 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,868 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-06 15:15:07,942 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844?flat'} 2025-08-06 15:15:07,942 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is found in opserver 2025-08-06 15:15:07,970 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 15:15:07,986 - DEBUG - VRF ids for VN ctest-vn-61837844: {} 2025-08-06 15:15:07,986 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:15:07,994 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:15:08,011 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:15:08,106 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,121 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,132 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:15:08,142 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:15:08,152 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a2b5d38-5296-4320-9aad-ec9878f6ba69 2025-08-06 15:15:08,162 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 15:15:08,162 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,175 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:15:08,195 - INFO - Verified VN network id 10 for VN d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,195 - INFO - Verifications in API Server for VN ctest-vn-95046012 passed 2025-08-06 15:15:08,195 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,208 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:15:08,216 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:15:08,224 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a2b5d38-5296-4320-9aad-ec9878f6ba69 2025-08-06 15:15:08,243 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15128596936025525703', 'uuid-lslong': '10450016531328469713'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.298994'} 2025-08-06 15:15:08,252 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 15:15:08,261 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15128596936025525703', 'uuid-lslong': '10450016531328469713'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.317090'} 2025-08-06 15:15:08,269 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 15:15:08,277 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70976976', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15128596936025525703', 'uuid-lslong': '10450016531328469713'}, 'enable': 'true', 'created': '2025-08-06T15:15:04', 'last-modified': '2025-08-06T15:15:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.336387'} 2025-08-06 15:15:08,286 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-06 15:15:08,286 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95046012 passed 2025-08-06 15:15:08,287 - DEBUG - ====Verifying policy data for ctest-vn-95046012 in API_Server ====== 2025-08-06 15:15:08,287 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:15:08,297 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:15:08,318 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:15:08,428 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 2025-08-06 15:15:08,440 - DEBUG - ==>Verifying data for policy with id: 6c7fce2e-6e20-4784-821d-2d86ea9cd490, fqn: ['default-domain', 'ctest-TestBasicPolicy-70976976', 'ctest-policy-allow-all-89335749'] 2025-08-06 15:15:08,440 - INFO - VN ctest-vn-95046012 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-06 15:15:08,441 - DEBUG - Verifying the vn in opserver 2025-08-06 15:15:08,441 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012 virtual network link through opserver 10.0.0.254 2025-08-06 15:15:08,441 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-06 15:15:08,501 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012?flat'} 2025-08-06 15:15:08,501 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012 virtual network link through opserver 10.0.0.38 2025-08-06 15:15:08,501 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-06 15:15:08,555 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012?flat'} 2025-08-06 15:15:08,555 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012 virtual network link through opserver 10.0.0.48 2025-08-06 15:15:08,555 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-06 15:15:08,612 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012?flat'} 2025-08-06 15:15:08,612 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-95046012 is found in opserver 2025-08-06 15:15:08,638 - DEBUG - Do not have enough data to verify VN in agent 2025-08-06 15:15:08,650 - DEBUG - VRF ids for VN ctest-vn-95046012: {} 2025-08-06 15:15:08,806 - DEBUG - Services list from nova: [, , , ] 2025-08-06 15:15:09,934 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3763-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3763-1) 2025-08-06 15:15:11,343 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3763-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3763-2) 2025-08-06 15:15:11,343 - INFO - Waiting for VM ctest-TestBasicPolicy-70976976-73968968 to be up.. 2025-08-06 15:15:11,449 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-06 15:15:16,540 - DEBUG - VM is in ACTIVE state now 2025-08-06 15:15:16,540 - INFO - VM name : ctest-TestBasicPolicy-70976976-73968968 2025-08-06 15:15:16,624 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 ID is 828530d9-f512-4ad9-b2d5-ce890742df6b 2025-08-06 15:15:16,649 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 launched on Node an-jenkins-deploy-platform-ansible-os-3763-1 2025-08-06 15:15:16,735 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/828530d9-f512-4ad9-b2d5-ce890742df6b 2025-08-06 15:15:17,031 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/828530d9-f512-4ad9-b2d5-ce890742df6b 2025-08-06 15:15:17,071 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/d779609f-e026-4a1e-ac42-4d2956a23f4b 2025-08-06 15:15:20,300 - 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') 2025-08-06 15:15:20,300 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:20,317 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:24,393 - 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-08-06 15:15:24,394 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:24,409 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:28,490 - 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-08-06 15:15:28,490 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:28,505 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:32,593 - 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-08-06 15:15:32,593 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:32,608 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:36,685 - 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-08-06 15:15:36,686 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:36,701 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:40,783 - 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 1014ms') 2025-08-06 15:15:40,783 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:40,800 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:44,872 - 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-08-06 15:15:44,872 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:44,886 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:48,968 - 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 1027ms') 2025-08-06 15:15:48,968 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 failed! 2025-08-06 15:15:48,982 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70976976:ctest-vn-61837844 is 198.135.243.129 and allocation pool is NOT set 2025-08-06 15:15:53,066 - 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=11.8 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1025ms\r\nrtt min/avg/max/mdev = 11.848/11.848/11.848/0.000 ms') 2025-08-06 15:15:53,067 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-73968968 passed 2025-08-06 15:15:53,185 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:15:53,185 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-73968968, IP 198.135.243.131, Port 22 2025-08-06 15:15:53,253 - 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-08-06 15:15:53,333 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 15:15:58,334 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:15:58,334 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-73968968, IP 198.135.243.131, Port 22 2025-08-06 15:15:58,401 - 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-08-06 15:15:58,482 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 15:16:03,483 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:03,483 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-73968968, IP 198.135.243.131, Port 22 2025-08-06 15:16:03,549 - 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-08-06 15:16:03,648 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 15:16:08,649 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:08,649 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-73968968, IP 198.135.243.131, Port 22 2025-08-06 15:16:08,721 - 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-08-06 15:16:08,799 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 15:16:13,800 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:13,800 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-73968968, IP 198.135.243.131, Port 22 2025-08-06 15:16:13,973 - DEBUG - VM ctest-TestBasicPolicy-70976976-73968968 is ready for SSH connections 2025-08-06 15:16:13,973 - INFO - Waiting for VM ctest-TestBasicPolicy-70976976-64534494 to be up.. 2025-08-06 15:16:14,051 - DEBUG - VM is in ACTIVE state now 2025-08-06 15:16:14,051 - INFO - VM name : ctest-TestBasicPolicy-70976976-64534494 2025-08-06 15:16:14,130 - DEBUG - VM ctest-TestBasicPolicy-70976976-64534494 ID is 65e5abf3-3d3a-4898-84a6-d7ecf375d210 2025-08-06 15:16:14,130 - DEBUG - VM ctest-TestBasicPolicy-70976976-64534494 launched on Node an-jenkins-deploy-platform-ansible-os-3763-2 2025-08-06 15:16:14,209 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine/65e5abf3-3d3a-4898-84a6-d7ecf375d210 2025-08-06 15:16:14,220 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-machine-interface/9fb0f316-695b-4115-8007-0a1a9e4aae01 2025-08-06 15:16:15,437 - 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=6.46 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.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 = 1.720/4.087/6.455/2.367 ms') 2025-08-06 15:16:15,437 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70976976-64534494 passed 2025-08-06 15:16:15,547 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:15,547 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-64534494, IP 31.168.87.3, Port 22 2025-08-06 15:16:15,614 - 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-08-06 15:16:15,695 - DEBUG - VM ctest-TestBasicPolicy-70976976-64534494 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-06 15:16:20,696 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:20,696 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70976976-64534494, IP 31.168.87.3, Port 22 2025-08-06 15:16:20,866 - DEBUG - VM ctest-TestBasicPolicy-70976976-64534494 is ready for SSH connections 2025-08-06 15:16:20,866 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:20,866 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.168.87.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-08-06 15:16:20,866 - DEBUG - ping -s 56 -c 3 -W 1 31.168.87.3 2025-08-06 15:16:39,300 - DEBUG - PING 31.168.87.3 (31.168.87.3) 56(84) bytes of data. 64 bytes from 31.168.87.3: icmp_req=1 ttl=63 time=7.36 ms 64 bytes from 31.168.87.3: icmp_req=2 ttl=63 time=1.57 ms 64 bytes from 31.168.87.3: icmp_req=3 ttl=63 time=3.89 ms --- 31.168.87.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.571/4.278/7.366/2.381 ms 2025-08-06 15:16:39,300 - INFO - Ping to IP 31.168.87.3 from VM ctest-TestBasicPolicy-70976976-73968968 passed 2025-08-06 15:16:39,518 - DEBUG - Policy Update Response {"network-policy": {"uuid": "6c7fce2e-6e20-4784-821d-2d86ea9cd490", "href": "http://10.0.0.48:8082/network-policy/6c7fce2e-6e20-4784-821d-2d86ea9cd490"}} 2025-08-06 15:16:39,518 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-06 15:16:39,518 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 31.168.87.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-08-06 15:16:39,519 - DEBUG - ping -s 56 -c 3 -W 1 31.168.87.3 2025-08-06 15:16:43,065 - DEBUG - PING 31.168.87.3 (31.168.87.3) 56(84) bytes of data. --- 31.168.87.3 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2001ms 2025-08-06 15:16:43,065 - WARNING - Ping to IP 31.168.87.3 from VM ctest-TestBasicPolicy-70976976-73968968 failed 2025-08-06 15:16:43,065 - INFO - Deleting VM ctest-TestBasicPolicy-70976976-64534494 2025-08-06 15:16:43,141 - INFO - Deleting VM ctest-TestBasicPolicy-70976976-73968968 2025-08-06 15:16:43,640 - INFO - Deleted policy ctest-policy-allow-all-89335749 2025-08-06 15:16:43,640 - INFO - Deleting VN ctest-vn-95046012 2025-08-06 15:16:43,704 - DEBUG - VN d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1 still in use: Unable to complete operation on network d1f392c2-31dd-4dc7-9105-eaab2ecb0ad1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-e4f32b8b-1380-4d86-b7f1-188f036f5b59'] 2025-08-06 15:16:43,704 - WARNING - Deleting VN ctest-vn-95046012 failed..Will retry 2025-08-06 15:16:45,866 - DEBUG - Response for deleting network () 2025-08-06 15:16:45,866 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/9ffeb9a9-8d21-42b1-8a25-22514d35da80 2025-08-06 15:16:45,884 - DEBUG - Response Code: 404 2025-08-06 15:16:45,884 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:16:45,895 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:16:45,913 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:16:46,019 - INFO - Validated that VN ctest-vn-95046012 is not found in API Server 2025-08-06 15:16:46,034 - DEBUG - VN ctest-vn-95046012 is not present in Agent 10.0.0.49 2025-08-06 15:16:46,046 - DEBUG - VN ctest-vn-95046012 is not present in Agent 10.0.0.57 2025-08-06 15:16:46,046 - INFO - Validated that VN ctest-vn-95046012 is not in any agent 2025-08-06 15:16:46,095 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-95046012 info 2025-08-06 15:16:46,095 - INFO - Deleting VN ctest-vn-61837844 2025-08-06 15:16:46,299 - DEBUG - Response for deleting network () 2025-08-06 15:16:46,299 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/810d2d05-f43f-4c1e-ae08-fb2dd71ab9b1 2025-08-06 15:16:46,306 - DEBUG - Response Code: 404 2025-08-06 15:16:46,306 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-06 15:16:46,315 - DEBUG - Requesting: http://10.0.0.254:8082/domain/024378da-7408-4369-ac73-51fa8d4d8d77 2025-08-06 15:16:46,327 - DEBUG - Requesting: http://10.0.0.254:8082/project/837d58f9-77a8-4abe-92df-8ac08ce4f0d7 2025-08-06 15:16:46,420 - INFO - Validated that VN ctest-vn-61837844 is not found in API Server 2025-08-06 15:16:46,433 - DEBUG - VN ctest-vn-61837844 is not present in Agent 10.0.0.49 2025-08-06 15:16:46,447 - DEBUG - VN ctest-vn-61837844 is not present in Agent 10.0.0.57 2025-08-06 15:16:46,447 - INFO - Validated that VN ctest-vn-61837844 is not in any agent 2025-08-06 15:16:46,484 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-61837844 info 2025-08-06 15:16:47,772 - DEBUG - No XMPP flaps were noticed during the test 2025-08-06 15:16:47,772 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:45] 2025-08-06 15:16:47,773 - INFO - -------------------------------------------------------------------------------- 2025-08-06 15:16:48,524 - INFO - Deleted project: ctest-TestBasicPolicy-70976976, ID : 837d58f9-77a8-4abe-92df-8ac08ce4f0d7