2025-02-10 15:12:18,298 - INFO - Domain Default found not creating
2025-02-10 15:12:18,453 - INFO - Project ctest-TestBasicPolicy-57345574 not found, creating it
2025-02-10 15:12:18,924 - INFO - Created Project:ctest-TestBasicPolicy-57345574, ID : 37bc9c3f-9fd8-48f7-a1d1-4f98c693e121
2025-02-10 15:12:20,369 - INFO - ================================================================================
2025-02-10 15:12:20,369 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 15:12:20,369 - 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-02-10 15:12:20,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.25': '0'}} with
2025-02-10 15:12:20,626 - INFO - Initial checks done. Running the testcase now
2025-02-10 15:12:20,626 - INFO -
2025-02-10 15:12:21,173 - DEBUG - Response for create_network : {'network': {'id': 'c6fae5b1-c789-4de3-8ab4-eeae923821f4', 'name': 'ctest-vn-67594942', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-vn-67594942'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 15:12:21,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '2414bd6b-d3ce-4f61-9e1a-c0956a460b6c', 'name': '', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'network_id': 'c6fae5b1-c789-4de3-8ab4-eeae923821f4', 'ip_version': 4, 'cidr': '4.161.52.0/26', 'allocation_pools': [{'start': '4.161.52.2', 'end': '4.161.52.62'}], 'gateway_ip': '4.161.52.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.161.52.2', 'tags': [], 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121'}}
2025-02-10 15:12:21,354 - INFO - Created VN ctest-vn-67594942
2025-02-10 15:12:21,408 - DEBUG - VN ctest-vn-67594942 UUID is c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:21,714 - DEBUG - Response for create_network : {'network': {'id': 'f6396dbb-1039-43b5-963e-fcfddf549efa', 'name': 'ctest-vn-54155000', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-vn-54155000'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 15:12:21,892 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5fabe12-12bb-4b59-9387-16f9f62693a0', 'name': '', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'network_id': 'f6396dbb-1039-43b5-963e-fcfddf549efa', 'ip_version': 4, 'cidr': '64.135.87.192/26', 'allocation_pools': [{'start': '64.135.87.194', 'end': '64.135.87.254'}], 'gateway_ip': '64.135.87.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '64.135.87.194', 'tags': [], 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121'}}
2025-02-10 15:12:21,913 - INFO - Created VN ctest-vn-54155000
2025-02-10 15:12:21,968 - DEBUG - VN ctest-vn-54155000 UUID is f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:22,085 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942, 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-57345574:ctest-vn-54155000, 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-02-10 15:12:22,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6fae5b1-c789-4de3-8ab4-eeae923821f4', 'name': 'ctest-vn-67594942', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2414bd6b-d3ce-4f61-9e1a-c0956a460b6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-vn-67594942'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-policy-allow-all-15255625']], 'subnet_ipam': [{'subnet_cidr': '4.161.52.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 15:12:22,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6396dbb-1039-43b5-963e-fcfddf549efa', 'name': 'ctest-vn-54155000', 'tenant_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'project_id': '37bc9c3f9fd848f7a1d14f98c693e121', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5fabe12-12bb-4b59-9387-16f9f62693a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-vn-54155000'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-policy-allow-all-15255625']], 'subnet_ipam': [{'subnet_cidr': '64.135.87.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 15:12:22,812 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-10 15:12:23,117 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-10 15:12:23,147 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c8d964ff-baea-4c1b-b632-63aa5a697bf8
2025-02-10 15:12:23,160 - DEBUG - Requesting: http://10.0.0.24:8082/project/37bc9c3f-9fd8-48f7-a1d1-4f98c693e121
2025-02-10 15:12:23,233 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,245 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,256 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/28c0549b-41be-4ec4-9084-31cccafc812e
2025-02-10 15:12:23,264 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/28c0549b-41be-4ec4-9084-31cccafc812e
2025-02-10 15:12:23,272 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4a4962d7-9b20-40d3-ba20-e92b88497b28
2025-02-10 15:12:23,279 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 15:12:23,279 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,291 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/28c0549b-41be-4ec4-9084-31cccafc812e
2025-02-10 15:12:23,309 - INFO - Verified VN network id 8 for VN c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,309 - INFO - Verifications in API Server for VN ctest-vn-67594942 passed
2025-02-10 15:12:23,309 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,322 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/28c0549b-41be-4ec4-9084-31cccafc812e
2025-02-10 15:12:23,330 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/28c0549b-41be-4ec4-9084-31cccafc812e
2025-02-10 15:12:23,338 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4a4962d7-9b20-40d3-ba20-e92b88497b28
2025-02-10 15:12:23,351 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57345574', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14338024915407031779', 'uuid-lslong': '9994875906586845684'}, 'enable': 'true', 'created': '2025-02-10T15:12:21', 'last-modified': '2025-02-10T15:12:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986768'}
2025-02-10 15:12:23,358 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 15:12:23,358 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67594942 passed
2025-02-10 15:12:23,358 - DEBUG - ====Verifying policy data for ctest-vn-67594942 in API_Server ======
2025-02-10 15:12:23,358 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-10 15:12:23,363 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c8d964ff-baea-4c1b-b632-63aa5a697bf8
2025-02-10 15:12:23,375 - DEBUG - Requesting: http://10.0.0.24:8082/project/37bc9c3f-9fd8-48f7-a1d1-4f98c693e121
2025-02-10 15:12:23,451 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/c6fae5b1-c789-4de3-8ab4-eeae923821f4
2025-02-10 15:12:23,462 - DEBUG - ==>Verifying data for policy with id: 715ccaf1-745b-48e8-845b-232905ab5826, fqn: ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-policy-allow-all-15255625']
2025-02-10 15:12:23,462 - INFO - VN ctest-vn-67594942 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 15:12:23,462 - DEBUG - Verifying the vn in opserver
2025-02-10 15:12:23,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942 virtual network link through opserver 10.0.0.24
2025-02-10 15:12:23,462 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-10 15:12:23,756 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-10 15:12:23,813 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942?flat'}
2025-02-10 15:12:23,813 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-67594942 is found in opserver
2025-02-10 15:12:23,825 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 15:12:23,830 - DEBUG - VRF ids for VN ctest-vn-67594942: {}
2025-02-10 15:12:23,831 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-10 15:12:23,837 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c8d964ff-baea-4c1b-b632-63aa5a697bf8
2025-02-10 15:12:23,851 - DEBUG - Requesting: http://10.0.0.24:8082/project/37bc9c3f-9fd8-48f7-a1d1-4f98c693e121
2025-02-10 15:12:23,932 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:23,948 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:23,960 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/503e88cb-a3bc-4451-8a8e-96b1687402e5
2025-02-10 15:12:23,970 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/503e88cb-a3bc-4451-8a8e-96b1687402e5
2025-02-10 15:12:23,978 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/6b181195-8a7f-4572-96bb-1a7bbc83188a
2025-02-10 15:12:23,984 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 15:12:23,985 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:23,995 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/503e88cb-a3bc-4451-8a8e-96b1687402e5
2025-02-10 15:12:24,012 - INFO - Verified VN network id 9 for VN f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:24,012 - INFO - Verifications in API Server for VN ctest-vn-54155000 passed
2025-02-10 15:12:24,013 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:24,024 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/503e88cb-a3bc-4451-8a8e-96b1687402e5
2025-02-10 15:12:24,032 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/503e88cb-a3bc-4451-8a8e-96b1687402e5
2025-02-10 15:12:24,043 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/6b181195-8a7f-4572-96bb-1a7bbc83188a
2025-02-10 15:12:24,057 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-54155000', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57345574', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17742332857201279925', 'uuid-lslong': '10826368721549041402'}, 'enable': 'true', 'created': '2025-02-10T15:12:21', 'last-modified': '2025-02-10T15:12:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.424744'}
2025-02-10 15:12:24,064 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 15:12:24,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54155000 passed
2025-02-10 15:12:24,064 - DEBUG - ====Verifying policy data for ctest-vn-54155000 in API_Server ======
2025-02-10 15:12:24,064 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-02-10 15:12:24,070 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c8d964ff-baea-4c1b-b632-63aa5a697bf8
2025-02-10 15:12:24,083 - DEBUG - Requesting: http://10.0.0.24:8082/project/37bc9c3f-9fd8-48f7-a1d1-4f98c693e121
2025-02-10 15:12:24,156 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/f6396dbb-1039-43b5-963e-fcfddf549efa
2025-02-10 15:12:24,166 - DEBUG - ==>Verifying data for policy with id: 715ccaf1-745b-48e8-845b-232905ab5826, fqn: ['default-domain', 'ctest-TestBasicPolicy-57345574', 'ctest-policy-allow-all-15255625']
2025-02-10 15:12:24,166 - INFO - VN ctest-vn-54155000 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 15:12:24,166 - DEBUG - Verifying the vn in opserver
2025-02-10 15:12:24,167 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-54155000 virtual network link through opserver 10.0.0.24
2025-02-10 15:12:24,167 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-02-10 15:12:24,177 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-54155000', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-54155000?flat'}
2025-02-10 15:12:24,177 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57345574:ctest-vn-54155000 is found in opserver
2025-02-10 15:12:24,188 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 15:12:24,193 - DEBUG - VRF ids for VN ctest-vn-54155000: {}
2025-02-10 15:12:24,256 - DEBUG - Services list from nova: [