2025-08-02 23:38:01,369 - INFO - Domain Default found not creating 2025-08-02 23:38:01,522 - INFO - Project ctest-TestBasicPolicy-70019755 not found, creating it 2025-08-02 23:38:02,092 - INFO - Created Project:ctest-TestBasicPolicy-70019755, ID : 0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:38:03,614 - INFO - ================================================================================ 2025-08-02 23:38:03,614 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-02 23:38:03,614 - 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-02 23:38:04,953 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0', '10.20.0.14': '0'}, '10.0.0.49': {'10.20.0.17': '0', '10.20.0.14': '0'}} with 2025-08-02 23:38:04,953 - INFO - Initial checks done. Running the testcase now 2025-08-02 23:38:04,953 - INFO - 2025-08-02 23:38:05,786 - DEBUG - Response for create_network : {'network': {'id': '1afea12a-2b26-486b-827d-f723d063337e', 'name': 'ctest-vn-40838792', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'project_id': '0fa228970fe44b18ad9c0aeb28a63034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-vn-40838792'], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:38:06,131 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf0c7d8f-1317-44f6-8dcf-97166b0e303f', 'name': '', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'network_id': '1afea12a-2b26-486b-827d-f723d063337e', 'ip_version': 4, 'cidr': '20.111.226.64/26', 'allocation_pools': [{'start': '20.111.226.66', 'end': '20.111.226.126'}], 'gateway_ip': '20.111.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.111.226.66', 'tags': [], 'project_id': '0fa228970fe44b18ad9c0aeb28a63034'}} 2025-08-02 23:38:06,156 - INFO - Created VN ctest-vn-40838792 2025-08-02 23:38:06,173 - DEBUG - VN ctest-vn-40838792 UUID is 1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:06,600 - DEBUG - Response for create_network : {'network': {'id': 'a29e797e-e646-4afb-ac8d-613f4d0898c5', 'name': 'ctest-vn-59462671', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'project_id': '0fa228970fe44b18ad9c0aeb28a63034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-vn-59462671'], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:38:06,849 - DEBUG - Response for create_subnet : {'subnet': {'id': '77b630f6-583a-49a9-a9db-4966844ff54e', 'name': '', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'network_id': 'a29e797e-e646-4afb-ac8d-613f4d0898c5', 'ip_version': 4, 'cidr': '170.98.90.192/26', 'allocation_pools': [{'start': '170.98.90.194', 'end': '170.98.90.254'}], 'gateway_ip': '170.98.90.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.98.90.194', 'tags': [], 'project_id': '0fa228970fe44b18ad9c0aeb28a63034'}} 2025-08-02 23:38:06,875 - INFO - Created VN ctest-vn-59462671 2025-08-02 23:38:06,887 - DEBUG - VN ctest-vn-59462671 UUID is a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:06,987 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792, 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-70019755:ctest-vn-59462671, 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-02 23:38:07,438 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1afea12a-2b26-486b-827d-f723d063337e', 'name': 'ctest-vn-40838792', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'project_id': '0fa228970fe44b18ad9c0aeb28a63034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf0c7d8f-1317-44f6-8dcf-97166b0e303f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-vn-40838792'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-policy-allow-all-34793098']], 'subnet_ipam': [{'subnet_cidr': '20.111.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:38:07,666 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a29e797e-e646-4afb-ac8d-613f4d0898c5', 'name': 'ctest-vn-59462671', 'tenant_id': '0fa228970fe44b18ad9c0aeb28a63034', 'project_id': '0fa228970fe44b18ad9c0aeb28a63034', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77b630f6-583a-49a9-a9db-4966844ff54e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-vn-59462671'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-policy-allow-all-34793098']], 'subnet_ipam': [{'subnet_cidr': '170.98.90.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-02 23:38:07,775 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:38:08,097 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:38:08,128 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:38:08,147 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:38:08,284 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,302 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,315 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:38:08,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:38:08,336 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4afc105-f321-4b67-8741-c695b91fc924 2025-08-02 23:38:08,345 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:38:08,345 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:38:08,389 - INFO - Verified VN network id 12 for VN 1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,389 - INFO - Verifications in API Server for VN ctest-vn-40838792 passed 2025-08-02 23:38:08,389 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,402 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:38:08,412 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:38:08,423 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a4afc105-f321-4b67-8741-c695b91fc924 2025-08-02 23:38:08,438 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1945169291555260523', 'uuid-lslong': '9402943330211541886'}, 'enable': 'true', 'created': '2025-08-02T23:38:05', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.056395'} 2025-08-02 23:38:08,446 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:38:08,459 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1945169291555260523', 'uuid-lslong': '9402943330211541886'}, 'enable': 'true', 'created': '2025-08-02T23:38:05', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.071411'} 2025-08-02 23:38:08,474 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:38:08,488 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1945169291555260523', 'uuid-lslong': '9402943330211541886'}, 'enable': 'true', 'created': '2025-08-02T23:38:05', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111579'} 2025-08-02 23:38:08,502 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-02 23:38:08,502 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40838792 passed 2025-08-02 23:38:08,503 - DEBUG - ====Verifying policy data for ctest-vn-40838792 in API_Server ====== 2025-08-02 23:38:08,503 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:38:08,512 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:38:08,528 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:38:08,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1afea12a-2b26-486b-827d-f723d063337e 2025-08-02 23:38:08,666 - DEBUG - ==>Verifying data for policy with id: 2866f91b-703c-4665-9a90-c8fafdb70f3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-policy-allow-all-34793098'] 2025-08-02 23:38:08,666 - INFO - VN ctest-vn-40838792 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-02 23:38:08,666 - DEBUG - Verifying the vn in opserver 2025-08-02 23:38:08,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 virtual network link through opserver 10.0.0.38 2025-08-02 23:38:08,666 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-02 23:38:08,973 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-02 23:38:09,036 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792?flat'} 2025-08-02 23:38:09,036 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 virtual network link through opserver 10.0.0.254 2025-08-02 23:38:09,036 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 23:38:09,333 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 23:38:09,425 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792?flat'} 2025-08-02 23:38:09,425 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 virtual network link through opserver 10.0.0.50 2025-08-02 23:38:09,425 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-02 23:38:09,723 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-02 23:38:09,803 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792?flat'} 2025-08-02 23:38:09,803 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is found in opserver 2025-08-02 23:38:09,828 - DEBUG - Do not have enough data to verify VN in agent 2025-08-02 23:38:09,840 - DEBUG - VRF ids for VN ctest-vn-40838792: {} 2025-08-02 23:38:09,840 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:38:09,851 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:38:09,867 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:38:09,985 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,019 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:38:10,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:38:10,042 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbbeafc5-a99c-43b0-8366-638c66aeb232 2025-08-02 23:38:10,050 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-02 23:38:10,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,061 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:38:10,089 - INFO - Verified VN network id 13 for VN a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,089 - INFO - Verifications in API Server for VN ctest-vn-59462671 passed 2025-08-02 23:38:10,089 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,101 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:38:10,110 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:38:10,119 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbbeafc5-a99c-43b0-8366-638c66aeb232 2025-08-02 23:38:10,135 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11717936866400815867', 'uuid-lslong': '12433701070743050437'}, 'enable': 'true', 'created': '2025-08-02T23:38:06', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.504394'} 2025-08-02 23:38:10,142 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-02 23:38:10,152 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11717936866400815867', 'uuid-lslong': '12433701070743050437'}, 'enable': 'true', 'created': '2025-08-02T23:38:06', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.521339'} 2025-08-02 23:38:10,162 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-02 23:38:10,171 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-70019755', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11717936866400815867', 'uuid-lslong': '12433701070743050437'}, 'enable': 'true', 'created': '2025-08-02T23:38:06', 'last-modified': '2025-08-02T23:38:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.540247'} 2025-08-02 23:38:10,185 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-02 23:38:10,185 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59462671 passed 2025-08-02 23:38:10,185 - DEBUG - ====Verifying policy data for ctest-vn-59462671 in API_Server ====== 2025-08-02 23:38:10,185 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:38:10,194 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:38:10,209 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:38:10,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a29e797e-e646-4afb-ac8d-613f4d0898c5 2025-08-02 23:38:10,348 - DEBUG - ==>Verifying data for policy with id: 2866f91b-703c-4665-9a90-c8fafdb70f3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-70019755', 'ctest-policy-allow-all-34793098'] 2025-08-02 23:38:10,348 - INFO - VN ctest-vn-59462671 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-02 23:38:10,348 - DEBUG - Verifying the vn in opserver 2025-08-02 23:38:10,348 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671 virtual network link through opserver 10.0.0.38 2025-08-02 23:38:10,348 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-02 23:38:10,426 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671?flat'} 2025-08-02 23:38:10,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671 virtual network link through opserver 10.0.0.254 2025-08-02 23:38:10,426 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-02 23:38:10,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671?flat'} 2025-08-02 23:38:10,494 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671 virtual network link through opserver 10.0.0.50 2025-08-02 23:38:10,494 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-02 23:38:10,564 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671?flat'} 2025-08-02 23:38:10,564 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-59462671 is found in opserver 2025-08-02 23:38:10,588 - DEBUG - Do not have enough data to verify VN in agent 2025-08-02 23:38:10,601 - DEBUG - VRF ids for VN ctest-vn-59462671: {} 2025-08-02 23:38:10,662 - DEBUG - Services list from nova: [, , , ] 2025-08-02 23:38:11,835 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3743-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3743-2) 2025-08-02 23:38:13,255 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3743-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3743-1) 2025-08-02 23:38:13,256 - INFO - Waiting for VM ctest-TestBasicPolicy-70019755-39296041 to be up.. 2025-08-02 23:38:13,368 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-02 23:38:18,486 - DEBUG - VM is in ACTIVE state now 2025-08-02 23:38:18,486 - INFO - VM name : ctest-TestBasicPolicy-70019755-39296041 2025-08-02 23:38:18,615 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 ID is 999c22de-dbf5-4679-8dfc-f97e49d6c611 2025-08-02 23:38:18,659 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 launched on Node an-jenkins-deploy-platform-ansible-os-3743-2 2025-08-02 23:38:18,787 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/999c22de-dbf5-4679-8dfc-f97e49d6c611 2025-08-02 23:38:19,094 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/999c22de-dbf5-4679-8dfc-f97e49d6c611 2025-08-02 23:38:19,148 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/39ead229-0d26-4964-a0e7-1b50807d556e 2025-08-02 23:38:22,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 1003ms') 2025-08-02 23:38:22,407 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:22,441 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:26,540 - 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 1031ms') 2025-08-02 23:38:26,540 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:26,582 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:30,666 - 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-02 23:38:30,666 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:30,701 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:34,796 - 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') 2025-08-02 23:38:34,796 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:34,833 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:38,919 - 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-02 23:38:38,919 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:38,956 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:43,043 - 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 1031ms') 2025-08-02 23:38:43,043 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:43,076 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:47,174 - 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 1033ms') 2025-08-02 23:38:47,174 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:47,209 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:51,270 - 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 1003ms') 2025-08-02 23:38:51,270 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 failed! 2025-08-02 23:38:51,303 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-70019755:ctest-vn-40838792 is 20.111.226.65 and allocation pool is NOT set 2025-08-02 23:38:53,366 - 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=11.2 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=2.74 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 2.738/6.952/11.167/4.214 ms') 2025-08-02 23:38:53,366 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-39296041 passed 2025-08-02 23:38:53,497 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:38:53,497 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-39296041, IP 20.111.226.67, Port 22 2025-08-02 23:38:53,564 - 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-02 23:38:53,684 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-02 23:38:58,685 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:38:58,687 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-39296041, IP 20.111.226.67, Port 22 2025-08-02 23:38:58,755 - 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-02 23:38:58,857 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-02 23:39:03,858 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:03,859 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-39296041, IP 20.111.226.67, Port 22 2025-08-02 23:39:03,931 - 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-02 23:39:04,037 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-02 23:39:09,038 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:09,038 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-39296041, IP 20.111.226.67, Port 22 2025-08-02 23:39:09,094 - 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-02 23:39:09,202 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-02 23:39:14,203 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:14,203 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-39296041, IP 20.111.226.67, Port 22 2025-08-02 23:39:14,379 - DEBUG - VM ctest-TestBasicPolicy-70019755-39296041 is ready for SSH connections 2025-08-02 23:39:14,379 - INFO - Waiting for VM ctest-TestBasicPolicy-70019755-97087884 to be up.. 2025-08-02 23:39:14,499 - DEBUG - VM is in ACTIVE state now 2025-08-02 23:39:14,499 - INFO - VM name : ctest-TestBasicPolicy-70019755-97087884 2025-08-02 23:39:14,604 - DEBUG - VM ctest-TestBasicPolicy-70019755-97087884 ID is 32703819-2da4-40df-ada3-07e4b2aeb67d 2025-08-02 23:39:14,604 - DEBUG - VM ctest-TestBasicPolicy-70019755-97087884 launched on Node an-jenkins-deploy-platform-ansible-os-3743-1 2025-08-02 23:39:14,720 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine/32703819-2da4-40df-ada3-07e4b2aeb67d 2025-08-02 23:39:14,738 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-machine-interface/8a9238d8-2244-4ed2-9023-1daf59dfc3bc 2025-08-02 23:39:15,972 - 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=7.25 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.668 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.668/3.959/7.250/3.291 ms') 2025-08-02 23:39:15,972 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-70019755-97087884 passed 2025-08-02 23:39:16,126 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:16,126 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-70019755-97087884, IP 170.98.90.195, Port 22 2025-08-02 23:39:16,288 - DEBUG - VM ctest-TestBasicPolicy-70019755-97087884 is ready for SSH connections 2025-08-02 23:39:16,288 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:16,288 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.98.90.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-08-02 23:39:16,288 - DEBUG - ping -s 56 -c 3 -W 1 170.98.90.195 2025-08-02 23:39:37,794 - DEBUG - PING 170.98.90.195 (170.98.90.195) 56(84) bytes of data. 64 bytes from 170.98.90.195: icmp_req=1 ttl=63 time=10.1 ms 64 bytes from 170.98.90.195: icmp_req=2 ttl=63 time=1.42 ms 64 bytes from 170.98.90.195: icmp_req=3 ttl=63 time=1.37 ms --- 170.98.90.195 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.371/4.327/10.184/4.141 ms 2025-08-02 23:39:37,794 - INFO - Ping to IP 170.98.90.195 from VM ctest-TestBasicPolicy-70019755-39296041 passed 2025-08-02 23:39:38,129 - DEBUG - Policy Update Response {"network-policy": {"uuid": "2866f91b-703c-4665-9a90-c8fafdb70f3d", "href": "http://10.0.0.50:8082/network-policy/2866f91b-703c-4665-9a90-c8fafdb70f3d"}} 2025-08-02 23:39:38,129 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-02 23:39:38,130 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.98.90.195, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.49, gateway password: c0ntrail123 2025-08-02 23:39:38,130 - DEBUG - ping -s 56 -c 3 -W 1 170.98.90.195 2025-08-02 23:39:42,041 - DEBUG - PING 170.98.90.195 (170.98.90.195) 56(84) bytes of data. --- 170.98.90.195 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2004ms 2025-08-02 23:39:42,041 - WARNING - Ping to IP 170.98.90.195 from VM ctest-TestBasicPolicy-70019755-39296041 failed 2025-08-02 23:39:42,041 - INFO - Deleting VM ctest-TestBasicPolicy-70019755-97087884 2025-08-02 23:39:42,113 - INFO - Deleting VM ctest-TestBasicPolicy-70019755-39296041 2025-08-02 23:39:42,706 - INFO - Deleted policy ctest-policy-allow-all-34793098 2025-08-02 23:39:42,708 - INFO - Deleting VN ctest-vn-59462671 2025-08-02 23:39:42,804 - DEBUG - VN a29e797e-e646-4afb-ac8d-613f4d0898c5 still in use: Unable to complete operation on network a29e797e-e646-4afb-ac8d-613f4d0898c5. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-dfb66450-3e14-40ae-840c-d15e4e0b024d'] 2025-08-02 23:39:42,804 - WARNING - Deleting VN ctest-vn-59462671 failed..Will retry 2025-08-02 23:39:45,044 - DEBUG - Response for deleting network () 2025-08-02 23:39:45,044 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3196a9c9-e00f-4c1f-a59e-688c82baa5f8 2025-08-02 23:39:45,063 - DEBUG - Response Code: 404 2025-08-02 23:39:45,063 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:39:45,072 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:39:45,090 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:39:45,219 - INFO - Validated that VN ctest-vn-59462671 is not found in API Server 2025-08-02 23:39:45,231 - DEBUG - VN ctest-vn-59462671 is not present in Agent 10.0.0.48 2025-08-02 23:39:45,243 - DEBUG - VN ctest-vn-59462671 is not present in Agent 10.0.0.49 2025-08-02 23:39:45,243 - INFO - Validated that VN ctest-vn-59462671 is not in any agent 2025-08-02 23:39:45,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-59462671 info 2025-08-02 23:39:45,296 - INFO - Deleting VN ctest-vn-40838792 2025-08-02 23:39:45,551 - DEBUG - Response for deleting network () 2025-08-02 23:39:45,551 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/deb17025-d86f-47e6-a206-25cdd9e14746 2025-08-02 23:39:45,570 - DEBUG - Response Code: 404 2025-08-02 23:39:45,571 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-02 23:39:45,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e48a4202-dd3d-4b87-9406-48f7b2154028 2025-08-02 23:39:45,598 - DEBUG - Requesting: http://10.0.0.38:8082/project/0fa22897-0fe4-4b18-ad9c-0aeb28a63034 2025-08-02 23:39:45,721 - INFO - Validated that VN ctest-vn-40838792 is not found in API Server 2025-08-02 23:39:45,733 - DEBUG - VN ctest-vn-40838792 is not present in Agent 10.0.0.48 2025-08-02 23:39:45,745 - DEBUG - VN ctest-vn-40838792 is not present in Agent 10.0.0.49 2025-08-02 23:39:45,745 - INFO - Validated that VN ctest-vn-40838792 is not in any agent 2025-08-02 23:39:45,792 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40838792 info 2025-08-02 23:39:47,163 - DEBUG - No XMPP flaps were noticed during the test 2025-08-02 23:39:47,163 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:44] 2025-08-02 23:39:47,163 - INFO - -------------------------------------------------------------------------------- 2025-08-02 23:39:48,044 - INFO - Deleted project: ctest-TestBasicPolicy-70019755, ID : 0fa22897-0fe4-4b18-ad9c-0aeb28a63034