2025-11-06 02:41:23,861 - INFO - Domain Default found not creating 2025-11-06 02:41:24,040 - INFO - Project ctest-TestBasicPolicy-80478612 not found, creating it 2025-11-06 02:41:24,636 - INFO - Created Project:ctest-TestBasicPolicy-80478612, ID : ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:41:26,132 - INFO - ================================================================================ 2025-11-06 02:41:26,132 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-11-06 02:41:26,133 - 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-11-06 02:41:27,412 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.252': '0', '10.20.0.249': '0'}, '10.0.0.133': {'10.20.0.252': '0', '10.20.0.249': '0'}} with 2025-11-06 02:41:27,412 - INFO - Initial checks done. Running the testcase now 2025-11-06 02:41:27,412 - INFO - 2025-11-06 02:41:28,656 - DEBUG - Response for create_network : {'network': {'id': '987d680d-63b5-4111-8195-4f2e3bad0bc2', 'name': 'ctest-vn-79241988', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-vn-79241988'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:41:28,942 - DEBUG - Response for create_subnet : {'subnet': {'id': '091f16dd-3bb4-48e4-a580-0f1264e2f6c5', 'name': '', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'network_id': '987d680d-63b5-4111-8195-4f2e3bad0bc2', 'ip_version': 4, 'cidr': '60.252.52.192/26', 'allocation_pools': [{'start': '60.252.52.194', 'end': '60.252.52.254'}], 'gateway_ip': '60.252.52.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.252.52.194', 'tags': [], 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9'}} 2025-11-06 02:41:28,962 - INFO - Created VN ctest-vn-79241988 2025-11-06 02:41:28,980 - DEBUG - VN ctest-vn-79241988 UUID is 987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:29,342 - DEBUG - Response for create_network : {'network': {'id': '42ec7cfd-93d1-43b4-a794-23de5e01d70e', 'name': 'ctest-vn-74475857', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-vn-74475857'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:41:29,629 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a5b12a20-e7e5-43e1-ab8c-993aa7088d35', 'name': '', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'network_id': '42ec7cfd-93d1-43b4-a794-23de5e01d70e', 'ip_version': 4, 'cidr': '20.25.164.128/26', 'allocation_pools': [{'start': '20.25.164.130', 'end': '20.25.164.190'}], 'gateway_ip': '20.25.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.25.164.130', 'tags': [], 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9'}} 2025-11-06 02:41:29,652 - INFO - Created VN ctest-vn-74475857 2025-11-06 02:41:29,666 - DEBUG - VN ctest-vn-74475857 UUID is 42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:29,749 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988, 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-80478612:ctest-vn-74475857, 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-11-06 02:41:30,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '987d680d-63b5-4111-8195-4f2e3bad0bc2', 'name': 'ctest-vn-79241988', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['091f16dd-3bb4-48e4-a580-0f1264e2f6c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-vn-79241988'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-policy-allow-all-80805917']], 'subnet_ipam': [{'subnet_cidr': '60.252.52.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:41:30,319 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42ec7cfd-93d1-43b4-a794-23de5e01d70e', 'name': 'ctest-vn-74475857', 'tenant_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'project_id': 'ff01176ad4f24de9a02b6f2464ec2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a5b12a20-e7e5-43e1-ab8c-993aa7088d35'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-vn-74475857'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-policy-allow-all-80805917']], 'subnet_ipam': [{'subnet_cidr': '20.25.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-06 02:41:30,461 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:41:30,772 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:41:30,806 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:41:30,822 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:41:30,918 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:30,932 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:30,941 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:41:30,948 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:41:30,956 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/210ce1d2-9e62-4045-a8ae-c654562fba3b 2025-11-06 02:41:30,962 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:41:30,962 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:30,970 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:41:30,989 - INFO - Verified VN network id 14 for VN 987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:30,989 - INFO - Verifications in API Server for VN ctest-vn-79241988 passed 2025-11-06 02:41:30,990 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:30,999 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:41:31,007 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:41:31,014 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/210ce1d2-9e62-4045-a8ae-c654562fba3b 2025-11-06 02:41:31,027 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10988053072570564881', 'uuid-lslong': '9337456462410877890'}, 'enable': 'true', 'created': '2025-11-06T02:41:28', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955907'} 2025-11-06 02:41:31,032 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:41:31,038 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10988053072570564881', 'uuid-lslong': '9337456462410877890'}, 'enable': 'true', 'created': '2025-11-06T02:41:28', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975056'} 2025-11-06 02:41:31,043 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:41:31,050 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10988053072570564881', 'uuid-lslong': '9337456462410877890'}, 'enable': 'true', 'created': '2025-11-06T02:41:28', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982775'} 2025-11-06 02:41:31,057 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 02:41:31,057 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79241988 passed 2025-11-06 02:41:31,057 - DEBUG - ====Verifying policy data for ctest-vn-79241988 in API_Server ====== 2025-11-06 02:41:31,057 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:41:31,063 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:41:31,076 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:41:31,174 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/987d680d-63b5-4111-8195-4f2e3bad0bc2 2025-11-06 02:41:31,186 - DEBUG - ==>Verifying data for policy with id: 133fda16-0d86-4b69-a3eb-39a40ca3b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-policy-allow-all-80805917'] 2025-11-06 02:41:31,186 - INFO - VN ctest-vn-79241988 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-06 02:41:31,186 - DEBUG - Verifying the vn in opserver 2025-11-06 02:41:31,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 virtual network link through opserver 10.0.0.41 2025-11-06 02:41:31,186 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-06 02:41:31,483 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-06 02:41:31,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988?flat'} 2025-11-06 02:41:31,543 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 virtual network link through opserver 10.0.0.38 2025-11-06 02:41:31,543 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 02:41:31,850 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 02:41:31,905 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988?flat'} 2025-11-06 02:41:31,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 virtual network link through opserver 10.0.0.131 2025-11-06 02:41:31,905 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-11-06 02:41:32,203 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-11-06 02:41:32,256 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988?flat'} 2025-11-06 02:41:32,256 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is found in opserver 2025-11-06 02:41:32,277 - DEBUG - Do not have enough data to verify VN in agent 2025-11-06 02:41:32,286 - DEBUG - VRF ids for VN ctest-vn-79241988: {} 2025-11-06 02:41:32,286 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:41:32,292 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:41:32,304 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:41:32,403 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,419 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,427 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:41:32,437 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:41:32,443 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1d676138-bff6-4783-ae66-10016819758b 2025-11-06 02:41:32,449 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-06 02:41:32,449 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,458 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:41:32,473 - INFO - Verified VN network id 15 for VN 42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,473 - INFO - Verifications in API Server for VN ctest-vn-74475857 passed 2025-11-06 02:41:32,473 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,484 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:41:32,493 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:41:32,500 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1d676138-bff6-4783-ae66-10016819758b 2025-11-06 02:41:32,512 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4822366729555493812', 'uuid-lslong': '12075315938854033166'}, 'enable': 'true', 'created': '2025-11-06T02:41:29', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.234930'} 2025-11-06 02:41:32,517 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-06 02:41:32,523 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4822366729555493812', 'uuid-lslong': '12075315938854033166'}, 'enable': 'true', 'created': '2025-11-06T02:41:29', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.251379'} 2025-11-06 02:41:32,529 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-06 02:41:32,535 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80478612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4822366729555493812', 'uuid-lslong': '12075315938854033166'}, 'enable': 'true', 'created': '2025-11-06T02:41:29', 'last-modified': '2025-11-06T02:41:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.264008'} 2025-11-06 02:41:32,542 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-11-06 02:41:32,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74475857 passed 2025-11-06 02:41:32,543 - DEBUG - ====Verifying policy data for ctest-vn-74475857 in API_Server ====== 2025-11-06 02:41:32,543 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:41:32,549 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:41:32,562 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:41:32,664 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/42ec7cfd-93d1-43b4-a794-23de5e01d70e 2025-11-06 02:41:32,673 - DEBUG - ==>Verifying data for policy with id: 133fda16-0d86-4b69-a3eb-39a40ca3b6d6, fqn: ['default-domain', 'ctest-TestBasicPolicy-80478612', 'ctest-policy-allow-all-80805917'] 2025-11-06 02:41:32,673 - INFO - VN ctest-vn-74475857 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-06 02:41:32,673 - DEBUG - Verifying the vn in opserver 2025-11-06 02:41:32,673 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857 virtual network link through opserver 10.0.0.41 2025-11-06 02:41:32,673 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-11-06 02:41:32,731 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857?flat'} 2025-11-06 02:41:32,731 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857 virtual network link through opserver 10.0.0.38 2025-11-06 02:41:32,731 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 02:41:32,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857?flat'} 2025-11-06 02:41:32,787 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857 virtual network link through opserver 10.0.0.131 2025-11-06 02:41:32,787 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-11-06 02:41:32,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857?flat'} 2025-11-06 02:41:32,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-74475857 is found in opserver 2025-11-06 02:41:32,872 - DEBUG - Do not have enough data to verify VN in agent 2025-11-06 02:41:32,881 - DEBUG - VRF ids for VN ctest-vn-74475857: {} 2025-11-06 02:41:32,941 - DEBUG - Services list from nova: [, , , ] 2025-11-06 02:41:34,018 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4662-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4662-2) 2025-11-06 02:41:35,368 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-4662-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-4662-1) 2025-11-06 02:41:35,368 - INFO - Waiting for VM ctest-TestBasicPolicy-80478612-31266093 to be up.. 2025-11-06 02:41:35,485 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-11-06 02:41:40,573 - DEBUG - VM is in ACTIVE state now 2025-11-06 02:41:40,574 - INFO - VM name : ctest-TestBasicPolicy-80478612-31266093 2025-11-06 02:41:40,665 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 ID is 786d8258-ee80-4f97-8b77-a00bfbfb1acb 2025-11-06 02:41:40,690 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 launched on Node an-jenkins-deploy-platform-ansible-os-4662-2 2025-11-06 02:41:40,776 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/786d8258-ee80-4f97-8b77-a00bfbfb1acb 2025-11-06 02:41:41,085 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/786d8258-ee80-4f97-8b77-a00bfbfb1acb 2025-11-06 02:41:41,119 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/210b0133-e426-45ff-82ad-af1cc4792366 2025-11-06 02:41:44,308 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-11-06 02:41:44,308 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:41:44,324 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:41:48,398 - 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 1013ms') 2025-11-06 02:41:48,399 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:41:48,415 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:41:52,499 - 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 1023ms') 2025-11-06 02:41:52,500 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:41:52,515 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:41:56,597 - 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-11-06 02:41:56,598 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:41:56,620 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:42:00,694 - 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 1005ms') 2025-11-06 02:42:00,694 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:42:00,710 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:42:04,790 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2025-11-06 02:42:04,791 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:42:04,807 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:42:08,880 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1015ms') 2025-11-06 02:42:08,881 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:42:08,896 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:42:12,981 - 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-11-06 02:42:12,982 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 failed! 2025-11-06 02:42:13,000 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-80478612:ctest-vn-79241988 is 60.252.52.193 and allocation pool is NOT set 2025-11-06 02:42:17,081 - 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=6.40 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 1 received, 50% packet loss, time 1013ms\r\nrtt min/avg/max/mdev = 6.395/6.395/6.395/0.000 ms') 2025-11-06 02:42:17,081 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-31266093 passed 2025-11-06 02:42:17,156 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:17,156 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-31266093, IP 60.252.52.195, Port 22 2025-11-06 02:42:17,221 - 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-11-06 02:42:17,305 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-06 02:42:22,306 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:22,306 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-31266093, IP 60.252.52.195, Port 22 2025-11-06 02:42:22,362 - 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-11-06 02:42:22,456 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-06 02:42:27,457 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:27,457 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-31266093, IP 60.252.52.195, Port 22 2025-11-06 02:42:27,515 - 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-11-06 02:42:27,604 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-06 02:42:32,605 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:32,605 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-31266093, IP 60.252.52.195, Port 22 2025-11-06 02:42:32,674 - 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-11-06 02:42:32,760 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 is NOT ready for SSH connections, VM status: ACTIVE 2025-11-06 02:42:37,761 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:37,761 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-31266093, IP 60.252.52.195, Port 22 2025-11-06 02:42:37,929 - DEBUG - VM ctest-TestBasicPolicy-80478612-31266093 is ready for SSH connections 2025-11-06 02:42:37,929 - INFO - Waiting for VM ctest-TestBasicPolicy-80478612-86790430 to be up.. 2025-11-06 02:42:38,036 - DEBUG - VM is in ACTIVE state now 2025-11-06 02:42:38,036 - INFO - VM name : ctest-TestBasicPolicy-80478612-86790430 2025-11-06 02:42:38,120 - DEBUG - VM ctest-TestBasicPolicy-80478612-86790430 ID is a2359600-8011-44b2-9c0c-af8c7f92eaf1 2025-11-06 02:42:38,120 - DEBUG - VM ctest-TestBasicPolicy-80478612-86790430 launched on Node an-jenkins-deploy-platform-ansible-os-4662-1 2025-11-06 02:42:38,216 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/a2359600-8011-44b2-9c0c-af8c7f92eaf1 2025-11-06 02:42:38,229 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/1a066acf-762f-4ff8-b474-de505c6408b9 2025-11-06 02:42:39,405 - 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.00 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.21 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 = 3.206/4.603/6.001/1.397 ms') 2025-11-06 02:42:39,405 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-80478612-86790430 passed 2025-11-06 02:42:39,481 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:39,481 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-80478612-86790430, IP 20.25.164.131, Port 22 2025-11-06 02:42:39,648 - DEBUG - VM ctest-TestBasicPolicy-80478612-86790430 is ready for SSH connections 2025-11-06 02:42:39,648 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:42:39,648 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.25.164.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.133, gateway password: c0ntrail123 2025-11-06 02:42:39,648 - DEBUG - ping -s 56 -c 3 -W 1 20.25.164.131 2025-11-06 02:43:01,923 - DEBUG - PING 20.25.164.131 (20.25.164.131) 56(84) bytes of data. 64 bytes from 20.25.164.131: icmp_req=1 ttl=63 time=7.12 ms 64 bytes from 20.25.164.131: icmp_req=2 ttl=63 time=1.38 ms 64 bytes from 20.25.164.131: icmp_req=3 ttl=63 time=1.17 ms --- 20.25.164.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 1.171/3.228/7.128/2.759 ms 2025-11-06 02:43:01,924 - INFO - Ping to IP 20.25.164.131 from VM ctest-TestBasicPolicy-80478612-31266093 passed 2025-11-06 02:43:02,186 - DEBUG - Policy Update Response {"network-policy": {"uuid": "133fda16-0d86-4b69-a3eb-39a40ca3b6d6", "href": "http://10.0.0.131:8082/network-policy/133fda16-0d86-4b69-a3eb-39a40ca3b6d6"}} 2025-11-06 02:43:02,186 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-11-06 02:43:02,186 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 20.25.164.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.133, gateway password: c0ntrail123 2025-11-06 02:43:02,186 - DEBUG - ping -s 56 -c 3 -W 1 20.25.164.131 2025-11-06 02:43:06,114 - DEBUG - PING 20.25.164.131 (20.25.164.131) 56(84) bytes of data. --- 20.25.164.131 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2011ms 2025-11-06 02:43:06,114 - WARNING - Ping to IP 20.25.164.131 from VM ctest-TestBasicPolicy-80478612-31266093 failed 2025-11-06 02:43:06,114 - INFO - Deleting VM ctest-TestBasicPolicy-80478612-86790430 2025-11-06 02:43:06,194 - INFO - Deleting VM ctest-TestBasicPolicy-80478612-31266093 2025-11-06 02:43:06,671 - INFO - Deleted policy ctest-policy-allow-all-80805917 2025-11-06 02:43:06,671 - INFO - Deleting VN ctest-vn-74475857 2025-11-06 02:43:06,726 - DEBUG - VN 42ec7cfd-93d1-43b4-a794-23de5e01d70e still in use: Unable to complete operation on network 42ec7cfd-93d1-43b4-a794-23de5e01d70e. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-35eb9362-26db-4204-b531-561c05976e93'] 2025-11-06 02:43:06,726 - WARNING - Deleting VN ctest-vn-74475857 failed..Will retry 2025-11-06 02:43:08,915 - DEBUG - Response for deleting network () 2025-11-06 02:43:08,915 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/50277f48-35a1-461d-b866-3b601889f87e 2025-11-06 02:43:08,921 - DEBUG - Response Code: 404 2025-11-06 02:43:08,921 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:43:08,927 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:43:08,939 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:43:09,031 - INFO - Validated that VN ctest-vn-74475857 is not found in API Server 2025-11-06 02:43:09,043 - DEBUG - VN ctest-vn-74475857 is not present in Agent 10.0.0.240 2025-11-06 02:43:09,055 - DEBUG - VN ctest-vn-74475857 is not present in Agent 10.0.0.133 2025-11-06 02:43:09,056 - INFO - Validated that VN ctest-vn-74475857 is not in any agent 2025-11-06 02:43:09,092 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-74475857 info 2025-11-06 02:43:09,092 - INFO - Deleting VN ctest-vn-79241988 2025-11-06 02:43:09,258 - DEBUG - Response for deleting network () 2025-11-06 02:43:09,258 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/3478c675-59cf-4fc0-b6d1-3da94e4c8e8b 2025-11-06 02:43:09,263 - DEBUG - Response Code: 404 2025-11-06 02:43:09,263 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-11-06 02:43:09,282 - DEBUG - Requesting: http://10.0.0.41:8082/domain/dd557474-6eee-442f-acdf-559f4d754f9d 2025-11-06 02:43:09,335 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff01176a-d4f2-4de9-a02b-6f2464ec2ed9 2025-11-06 02:43:09,429 - INFO - Validated that VN ctest-vn-79241988 is not found in API Server 2025-11-06 02:43:09,440 - DEBUG - VN ctest-vn-79241988 is not present in Agent 10.0.0.240 2025-11-06 02:43:09,450 - DEBUG - VN ctest-vn-79241988 is not present in Agent 10.0.0.133 2025-11-06 02:43:09,450 - INFO - Validated that VN ctest-vn-79241988 is not in any agent 2025-11-06 02:43:09,483 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-79241988 info 2025-11-06 02:43:10,765 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 02:43:10,765 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:44]
2025-11-06 02:43:10,766 - INFO - -------------------------------------------------------------------------------- 2025-11-06 02:43:11,534 - INFO - Deleted project: ctest-TestBasicPolicy-80478612, ID : ff01176a-d4f2-4de9-a02b-6f2464ec2ed9