2025-08-26 00:23:54,719 - INFO - Domain Default found not creating 2025-08-26 00:23:54,891 - INFO - Project ctest-TestBasicPolicy-98184479 not found, creating it 2025-08-26 00:23:55,533 - INFO - Created Project:ctest-TestBasicPolicy-98184479, ID : 61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:23:57,281 - INFO - ================================================================================ 2025-08-26 00:23:57,282 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-26 00:23:57,282 - 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-26 00:23:58,651 - DEBUG - Nothing to compare xmpp stats {'10.0.0.137': {'10.20.0.254': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-08-26 00:23:58,652 - INFO - Initial checks done. Running the testcase now 2025-08-26 00:23:58,652 - INFO - 2025-08-26 00:23:59,389 - DEBUG - Response for create_network : {'network': {'id': '28072a68-6aa0-45da-9636-d2c37e763596', 'name': 'ctest-vn-30131056', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-vn-30131056'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:23:59,715 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7be4b75-067e-4644-bf50-d738afb599ca', 'name': '', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'network_id': '28072a68-6aa0-45da-9636-d2c37e763596', 'ip_version': 4, 'cidr': '106.176.80.64/26', 'allocation_pools': [{'start': '106.176.80.66', 'end': '106.176.80.126'}], 'gateway_ip': '106.176.80.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '106.176.80.66', 'tags': [], 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7'}} 2025-08-26 00:23:59,745 - INFO - Created VN ctest-vn-30131056 2025-08-26 00:23:59,762 - DEBUG - VN ctest-vn-30131056 UUID is 28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:00,169 - DEBUG - Response for create_network : {'network': {'id': '73339b38-4919-48bd-a52d-b26900ad7379', 'name': 'ctest-vn-01269071', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-vn-01269071'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:24:00,397 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d3e0c14-92e3-4db7-9864-a97c88989355', 'name': '', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'network_id': '73339b38-4919-48bd-a52d-b26900ad7379', 'ip_version': 4, 'cidr': '170.240.255.0/26', 'allocation_pools': [{'start': '170.240.255.2', 'end': '170.240.255.62'}], 'gateway_ip': '170.240.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.240.255.2', 'tags': [], 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7'}} 2025-08-26 00:24:00,427 - INFO - Created VN ctest-vn-01269071 2025-08-26 00:24:00,451 - DEBUG - VN ctest-vn-01269071 UUID is 73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:00,549 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056, 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-98184479:ctest-vn-01269071, 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-26 00:24:01,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '28072a68-6aa0-45da-9636-d2c37e763596', 'name': 'ctest-vn-30131056', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e7be4b75-067e-4644-bf50-d738afb599ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-vn-30131056'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-policy-allow-all-71551095']], 'subnet_ipam': [{'subnet_cidr': '106.176.80.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:24:01,316 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73339b38-4919-48bd-a52d-b26900ad7379', 'name': 'ctest-vn-01269071', 'tenant_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'project_id': '61e2e4b19e1f4f06bbaf18f714e869f7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d3e0c14-92e3-4db7-9864-a97c88989355'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-vn-01269071'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-policy-allow-all-71551095']], 'subnet_ipam': [{'subnet_cidr': '170.240.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 00:24:01,436 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:24:01,918 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:24:01,953 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:24:01,973 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:24:02,089 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,112 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,125 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:24:02,137 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:24:02,149 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f9acd676-b4ec-4a3f-ad43-617dfdd3db4d 2025-08-26 00:24:02,161 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:24:02,161 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,175 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:24:02,204 - INFO - Verified VN network id 11 for VN 28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,204 - INFO - Verifications in API Server for VN ctest-vn-30131056 passed 2025-08-26 00:24:02,204 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,216 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:24:02,228 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:24:02,238 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f9acd676-b4ec-4a3f-ad43-617dfdd3db4d 2025-08-26 00:24:02,256 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2884320714307945946', 'uuid-lslong': '10824070491513697686'}, 'enable': 'true', 'created': '2025-08-26T00:23:59', 'last-modified': '2025-08-26T00:24:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.314395'} 2025-08-26 00:24:02,263 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:24:02,270 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2884320714307945946', 'uuid-lslong': '10824070491513697686'}, 'enable': 'true', 'created': '2025-08-26T00:23:59', 'last-modified': '2025-08-26T00:24:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320447'} 2025-08-26 00:24:02,277 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:24:02,283 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2884320714307945946', 'uuid-lslong': '10824070491513697686'}, 'enable': 'true', 'created': '2025-08-26T00:23:59', 'last-modified': '2025-08-26T00:24:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.350682'} 2025-08-26 00:24:02,290 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 00:24:02,291 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30131056 passed 2025-08-26 00:24:02,291 - DEBUG - ====Verifying policy data for ctest-vn-30131056 in API_Server ====== 2025-08-26 00:24:02,291 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:24:02,301 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:24:02,319 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:24:02,421 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/28072a68-6aa0-45da-9636-d2c37e763596 2025-08-26 00:24:02,442 - DEBUG - ==>Verifying data for policy with id: 8b5e8247-322b-40c9-b79d-16be63bab436, fqn: ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-policy-allow-all-71551095'] 2025-08-26 00:24:02,442 - INFO - VN ctest-vn-30131056 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 00:24:02,442 - DEBUG - Verifying the vn in opserver 2025-08-26 00:24:02,442 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 virtual network link through opserver 10.0.0.49 2025-08-26 00:24:02,443 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-26 00:24:02,745 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-26 00:24:02,822 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056?flat'} 2025-08-26 00:24:02,822 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 virtual network link through opserver 10.0.0.33 2025-08-26 00:24:02,822 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-26 00:24:03,127 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-26 00:24:03,203 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056?flat'} 2025-08-26 00:24:03,203 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 virtual network link through opserver 10.0.0.254 2025-08-26 00:24:03,204 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 00:24:03,515 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 00:24:03,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056?flat'} 2025-08-26 00:24:03,580 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is found in opserver 2025-08-26 00:24:03,607 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 00:24:03,619 - DEBUG - VRF ids for VN ctest-vn-30131056: {} 2025-08-26 00:24:03,619 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:24:03,627 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:24:03,645 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:24:03,790 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:03,809 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:03,823 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:24:03,835 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:24:03,845 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7b6ba111-684b-4bb5-8c7a-ecfe7e0192a5 2025-08-26 00:24:03,863 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 00:24:03,863 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:03,881 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:24:03,903 - INFO - Verified VN network id 12 for VN 73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:03,903 - INFO - Verifications in API Server for VN ctest-vn-01269071 passed 2025-08-26 00:24:03,903 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:03,921 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:24:03,942 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:24:03,954 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7b6ba111-684b-4bb5-8c7a-ecfe7e0192a5 2025-08-26 00:24:03,984 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8301149204220823741', 'uuid-lslong': '11902365554262766457'}, 'enable': 'true', 'created': '2025-08-26T00:24:00', 'last-modified': '2025-08-26T00:24:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.743071'} 2025-08-26 00:24:03,996 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 00:24:04,003 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8301149204220823741', 'uuid-lslong': '11902365554262766457'}, 'enable': 'true', 'created': '2025-08-26T00:24:00', 'last-modified': '2025-08-26T00:24:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.761383'} 2025-08-26 00:24:04,013 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 00:24:04,020 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98184479', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8301149204220823741', 'uuid-lslong': '11902365554262766457'}, 'enable': 'true', 'created': '2025-08-26T00:24:00', 'last-modified': '2025-08-26T00:24:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.780076'} 2025-08-26 00:24:04,027 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-26 00:24:04,027 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01269071 passed 2025-08-26 00:24:04,027 - DEBUG - ====Verifying policy data for ctest-vn-01269071 in API_Server ====== 2025-08-26 00:24:04,027 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:24:04,034 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:24:04,050 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:24:04,176 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/73339b38-4919-48bd-a52d-b26900ad7379 2025-08-26 00:24:04,192 - DEBUG - ==>Verifying data for policy with id: 8b5e8247-322b-40c9-b79d-16be63bab436, fqn: ['default-domain', 'ctest-TestBasicPolicy-98184479', 'ctest-policy-allow-all-71551095'] 2025-08-26 00:24:04,193 - INFO - VN ctest-vn-01269071 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 00:24:04,193 - DEBUG - Verifying the vn in opserver 2025-08-26 00:24:04,193 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071 virtual network link through opserver 10.0.0.49 2025-08-26 00:24:04,193 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-26 00:24:04,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071?flat'} 2025-08-26 00:24:04,265 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071 virtual network link through opserver 10.0.0.33 2025-08-26 00:24:04,265 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-26 00:24:04,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071?flat'} 2025-08-26 00:24:04,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071 virtual network link through opserver 10.0.0.254 2025-08-26 00:24:04,333 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-26 00:24:04,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071?flat'} 2025-08-26 00:24:04,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-01269071 is found in opserver 2025-08-26 00:24:04,446 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 00:24:04,466 - DEBUG - VRF ids for VN ctest-vn-01269071: {} 2025-08-26 00:24:04,535 - DEBUG - Services list from nova: [, , , ] 2025-08-26 00:24:05,718 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3931-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3931-1) 2025-08-26 00:24:07,442 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3931-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3931-2) 2025-08-26 00:24:07,442 - INFO - Waiting for VM ctest-TestBasicPolicy-98184479-71078855 to be up.. 2025-08-26 00:24:07,559 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-26 00:24:12,659 - DEBUG - VM is in ACTIVE state now 2025-08-26 00:24:12,659 - INFO - VM name : ctest-TestBasicPolicy-98184479-71078855 2025-08-26 00:24:12,882 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 ID is 7f6f3092-7c6c-4060-b2df-b70fe14a8f2c 2025-08-26 00:24:12,916 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 launched on Node an-jenkins-deploy-platform-ansible-os-3931-1 2025-08-26 00:24:13,018 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/7f6f3092-7c6c-4060-b2df-b70fe14a8f2c 2025-08-26 00:24:13,329 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/7f6f3092-7c6c-4060-b2df-b70fe14a8f2c 2025-08-26 00:24:13,363 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/ca2e649a-39f2-46a9-88b9-f51a1caf3ad6 2025-08-26 00:24:16,565 - 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-26 00:24:16,565 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:16,586 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:20,670 - 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-26 00:24:20,670 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:20,686 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:24,766 - 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 1011ms') 2025-08-26 00:24:24,766 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:24,782 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:28,867 - 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-26 00:24:28,867 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:28,885 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:32,957 - 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 1011ms') 2025-08-26 00:24:32,957 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:32,975 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:37,059 - 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-26 00:24:37,059 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:37,083 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:41,173 - 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 1025ms') 2025-08-26 00:24:41,174 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 failed! 2025-08-26 00:24:41,195 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-98184479:ctest-vn-30131056 is 106.176.80.65 and allocation pool is NOT set 2025-08-26 00:24:45,269 - 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.5 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1018ms\r\nrtt min/avg/max/mdev = 11.503/11.503/11.503/0.000 ms') 2025-08-26 00:24:45,269 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-71078855 passed 2025-08-26 00:24:45,344 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:24:45,344 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-71078855, IP 106.176.80.67, Port 22 2025-08-26 00:24:45,410 - 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-26 00:24:45,540 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 00:24:50,541 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:24:50,541 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-71078855, IP 106.176.80.67, Port 22 2025-08-26 00:24:50,596 - 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-26 00:24:50,688 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 00:24:55,689 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:24:55,689 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-71078855, IP 106.176.80.67, Port 22 2025-08-26 00:24:55,758 - 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-26 00:24:55,871 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 00:25:00,872 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:25:00,872 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-71078855, IP 106.176.80.67, Port 22 2025-08-26 00:25:00,938 - 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-26 00:25:01,044 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-26 00:25:06,045 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:25:06,045 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-71078855, IP 106.176.80.67, Port 22 2025-08-26 00:25:06,214 - DEBUG - VM ctest-TestBasicPolicy-98184479-71078855 is ready for SSH connections 2025-08-26 00:25:06,214 - INFO - Waiting for VM ctest-TestBasicPolicy-98184479-81835335 to be up.. 2025-08-26 00:25:06,340 - DEBUG - VM is in ACTIVE state now 2025-08-26 00:25:06,340 - INFO - VM name : ctest-TestBasicPolicy-98184479-81835335 2025-08-26 00:25:06,439 - DEBUG - VM ctest-TestBasicPolicy-98184479-81835335 ID is 3a842be3-0377-4e46-baab-a1e1adca6fb0 2025-08-26 00:25:06,439 - DEBUG - VM ctest-TestBasicPolicy-98184479-81835335 launched on Node an-jenkins-deploy-platform-ansible-os-3931-2 2025-08-26 00:25:06,555 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/3a842be3-0377-4e46-baab-a1e1adca6fb0 2025-08-26 00:25:06,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/6d140c7f-7397-4f48-9f72-0dfd05bd6bb5 2025-08-26 00:25:07,804 - 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.71 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.607 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.607/2.156/3.706/1.549 ms') 2025-08-26 00:25:07,805 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-98184479-81835335 passed 2025-08-26 00:25:07,900 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:25:07,900 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-98184479-81835335, IP 170.240.255.3, Port 22 2025-08-26 00:25:08,102 - DEBUG - VM ctest-TestBasicPolicy-98184479-81835335 is ready for SSH connections 2025-08-26 00:25:08,102 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:25:08,102 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.240.255.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-08-26 00:25:08,102 - DEBUG - ping -s 56 -c 3 -W 1 170.240.255.3 2025-08-26 00:25:26,300 - DEBUG - PING 170.240.255.3 (170.240.255.3) 56(84) bytes of data. 64 bytes from 170.240.255.3: icmp_req=1 ttl=63 time=10.5 ms 64 bytes from 170.240.255.3: icmp_req=2 ttl=63 time=4.87 ms 64 bytes from 170.240.255.3: icmp_req=3 ttl=63 time=2.19 ms --- 170.240.255.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 2.193/5.860/10.512/3.467 ms 2025-08-26 00:25:26,300 - INFO - Ping to IP 170.240.255.3 from VM ctest-TestBasicPolicy-98184479-71078855 passed 2025-08-26 00:25:26,543 - DEBUG - Policy Update Response {"network-policy": {"uuid": "8b5e8247-322b-40c9-b79d-16be63bab436", "href": "http://10.0.0.254:8082/network-policy/8b5e8247-322b-40c9-b79d-16be63bab436"}} 2025-08-26 00:25:26,543 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-26 00:25:26,543 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 170.240.255.3, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.137, gateway password: c0ntrail123 2025-08-26 00:25:26,543 - DEBUG - ping -s 56 -c 3 -W 1 170.240.255.3 2025-08-26 00:25:30,016 - DEBUG - PING 170.240.255.3 (170.240.255.3) 56(84) bytes of data. 64 bytes from 170.240.255.3: icmp_req=1 ttl=63 time=5.95 ms --- 170.240.255.3 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 5.952/5.952/5.952/0.000 ms 2025-08-26 00:25:30,016 - WARNING - Ping to IP 170.240.255.3 from VM ctest-TestBasicPolicy-98184479-71078855 failed 2025-08-26 00:25:30,017 - INFO - Deleting VM ctest-TestBasicPolicy-98184479-81835335 2025-08-26 00:25:30,107 - INFO - Deleting VM ctest-TestBasicPolicy-98184479-71078855 2025-08-26 00:25:30,672 - INFO - Deleted policy ctest-policy-allow-all-71551095 2025-08-26 00:25:30,672 - INFO - Deleting VN ctest-vn-01269071 2025-08-26 00:25:30,748 - DEBUG - VN 73339b38-4919-48bd-a52d-b26900ad7379 still in use: Unable to complete operation on network 73339b38-4919-48bd-a52d-b26900ad7379. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-49d7873f-e8bd-4366-bb02-48c4ebc0ca3c'] 2025-08-26 00:25:30,748 - WARNING - Deleting VN ctest-vn-01269071 failed..Will retry 2025-08-26 00:25:32,958 - DEBUG - Response for deleting network () 2025-08-26 00:25:32,958 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/76e82434-15f7-4f1d-be48-f44a1156c61e 2025-08-26 00:25:32,977 - DEBUG - Response Code: 404 2025-08-26 00:25:32,977 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:25:32,988 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:25:33,012 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:25:33,142 - INFO - Validated that VN ctest-vn-01269071 is not found in API Server 2025-08-26 00:25:33,159 - DEBUG - VN ctest-vn-01269071 is not present in Agent 10.0.0.137 2025-08-26 00:25:33,189 - DEBUG - VN ctest-vn-01269071 is not present in Agent 10.0.0.41 2025-08-26 00:25:33,189 - INFO - Validated that VN ctest-vn-01269071 is not in any agent 2025-08-26 00:25:33,257 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-01269071 info 2025-08-26 00:25:33,257 - INFO - Deleting VN ctest-vn-30131056 2025-08-26 00:25:33,565 - DEBUG - Response for deleting network () 2025-08-26 00:25:33,565 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/496cdf64-2573-463d-9b0e-4b9bbd81212c 2025-08-26 00:25:33,574 - DEBUG - Response Code: 404 2025-08-26 00:25:33,574 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-26 00:25:33,582 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ef4dcfcd-b3c2-4159-a2f0-815ca79e3b02 2025-08-26 00:25:33,646 - DEBUG - Requesting: http://10.0.0.49:8082/project/61e2e4b1-9e1f-4f06-bbaf-18f714e869f7 2025-08-26 00:25:33,751 - INFO - Validated that VN ctest-vn-30131056 is not found in API Server 2025-08-26 00:25:33,764 - DEBUG - VN ctest-vn-30131056 is not present in Agent 10.0.0.137 2025-08-26 00:25:33,792 - DEBUG - VN ctest-vn-30131056 is not present in Agent 10.0.0.41 2025-08-26 00:25:33,792 - INFO - Validated that VN ctest-vn-30131056 is not in any agent 2025-08-26 00:25:33,849 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-30131056 info 2025-08-26 00:25:35,220 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 00:25:35,221 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:38]
2025-08-26 00:25:35,221 - INFO - -------------------------------------------------------------------------------- 2025-08-26 00:25:36,089 - INFO - Deleted project: ctest-TestBasicPolicy-98184479, ID : 61e2e4b1-9e1f-4f06-bbaf-18f714e869f7