2025-06-08 05:56:40,332 - INFO - Domain Default found not creating
2025-06-08 05:56:40,475 - INFO - Project ctest-TestBasicPolicy-06692943 not found, creating it
2025-06-08 05:56:40,917 - INFO - Created Project:ctest-TestBasicPolicy-06692943, ID : 5ca5ca70-2bf4-45c8-bf6d-03840031eb4b
2025-06-08 05:56:42,505 - INFO - ================================================================================
2025-06-08 05:56:42,505 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-08 05:56:42,505 - 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-06-08 05:56:42,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-08 05:56:42,759 - INFO - Initial checks done. Running the testcase now
2025-06-08 05:56:42,759 - INFO -
2025-06-08 05:56:43,339 - DEBUG - Response for create_network : {'network': {'id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'name': 'ctest-vn-83823237', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-83823237'], 'port_security_enabled': True, 'description': ''}}
2025-06-08 05:56:43,521 - DEBUG - Response for create_subnet : {'subnet': {'id': '22e7c108-29db-4eeb-a0eb-a987c184bfbf', 'name': '', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'network_id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'ip_version': 4, 'cidr': '185.111.59.128/26', 'allocation_pools': [{'start': '185.111.59.130', 'end': '185.111.59.190'}], 'gateway_ip': '185.111.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.111.59.130', 'tags': [], 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b'}}
2025-06-08 05:56:43,542 - INFO - Created VN ctest-vn-83823237
2025-06-08 05:56:43,596 - DEBUG - VN ctest-vn-83823237 UUID is 62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:43,894 - DEBUG - Response for create_network : {'network': {'id': '463b662f-c051-4345-be70-1114f5850695', 'name': 'ctest-vn-54289770', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-54289770'], 'port_security_enabled': True, 'description': ''}}
2025-06-08 05:56:44,082 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a447408d-6c14-4a55-ab65-655174531ad3', 'name': '', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'network_id': '463b662f-c051-4345-be70-1114f5850695', 'ip_version': 4, 'cidr': '220.90.74.0/26', 'allocation_pools': [{'start': '220.90.74.2', 'end': '220.90.74.62'}], 'gateway_ip': '220.90.74.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.90.74.2', 'tags': [], 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b'}}
2025-06-08 05:56:44,100 - INFO - Created VN ctest-vn-54289770
2025-06-08 05:56:44,152 - DEBUG - VN ctest-vn-54289770 UUID is 463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:44,300 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237, 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-06692943:ctest-vn-54289770, 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-06-08 05:56:44,595 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62ef74bc-d5ac-4b20-b652-a663f4eab3b1', 'name': 'ctest-vn-83823237', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22e7c108-29db-4eeb-a0eb-a987c184bfbf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-83823237'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']], 'subnet_ipam': [{'subnet_cidr': '185.111.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-08 05:56:44,828 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '463b662f-c051-4345-be70-1114f5850695', 'name': 'ctest-vn-54289770', 'tenant_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'project_id': '5ca5ca702bf445c8bf6d03840031eb4b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a447408d-6c14-4a55-ab65-655174531ad3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-vn-54289770'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']], 'subnet_ipam': [{'subnet_cidr': '220.90.74.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-08 05:56:44,992 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-08 05:56:45,336 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-08 05:56:45,370 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2
2025-06-08 05:56:45,383 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b
2025-06-08 05:56:45,462 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,474 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,485 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678
2025-06-08 05:56:45,493 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678
2025-06-08 05:56:45,499 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/630ae12c-e998-4e5e-ac05-a91b1214752d
2025-06-08 05:56:45,506 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-08 05:56:45,506 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,515 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678
2025-06-08 05:56:45,529 - INFO - Verified VN network id 8 for VN 62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,529 - INFO - Verifications in API Server for VN ctest-vn-83823237 passed
2025-06-08 05:56:45,529 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,538 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678
2025-06-08 05:56:45,545 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/b5e7df1f-1309-4978-9e1c-6caa3a298678
2025-06-08 05:56:45,552 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/630ae12c-e998-4e5e-ac05-a91b1214752d
2025-06-08 05:56:45,564 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06692943', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7129045089538296608', 'uuid-lslong': '13137746011234153393'}, 'enable': 'true', 'created': '2025-06-08T05:56:43', 'last-modified': '2025-06-08T05:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988672'}
2025-06-08 05:56:45,570 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-08 05:56:45,571 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83823237 passed
2025-06-08 05:56:45,571 - DEBUG - ====Verifying policy data for ctest-vn-83823237 in API_Server ======
2025-06-08 05:56:45,571 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-08 05:56:45,576 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2
2025-06-08 05:56:45,587 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b
2025-06-08 05:56:45,664 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/62ef74bc-d5ac-4b20-b652-a663f4eab3b1
2025-06-08 05:56:45,675 - DEBUG - ==>Verifying data for policy with id: ca7eabc7-382f-426e-8f18-89cba8d2f0e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']
2025-06-08 05:56:45,675 - INFO - VN ctest-vn-83823237 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-08 05:56:45,675 - DEBUG - Verifying the vn in opserver
2025-06-08 05:56:45,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237 virtual network link through opserver 10.0.0.65
2025-06-08 05:56:45,675 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-08 05:56:46,006 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-08 05:56:46,061 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237?flat'}
2025-06-08 05:56:46,061 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-83823237 is found in opserver
2025-06-08 05:56:46,072 - DEBUG - Do not have enough data to verify VN in agent
2025-06-08 05:56:46,077 - DEBUG - VRF ids for VN ctest-vn-83823237: {}
2025-06-08 05:56:46,077 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-08 05:56:46,083 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2
2025-06-08 05:56:46,095 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b
2025-06-08 05:56:46,170 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,185 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,197 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6
2025-06-08 05:56:46,206 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6
2025-06-08 05:56:46,215 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a6c1206-24d0-4fdb-a593-de186060a392
2025-06-08 05:56:46,222 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-08 05:56:46,222 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,234 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6
2025-06-08 05:56:46,251 - INFO - Verified VN network id 9 for VN 463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,251 - INFO - Verifications in API Server for VN ctest-vn-54289770 passed
2025-06-08 05:56:46,251 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,263 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6
2025-06-08 05:56:46,272 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/e5fc8eb8-f61b-4df1-9e57-2a1a9b625fa6
2025-06-08 05:56:46,281 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/7a6c1206-24d0-4fdb-a593-de186060a392
2025-06-08 05:56:46,297 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06692943', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5060750961556931397', 'uuid-lslong': '13722486846314055317'}, 'enable': 'true', 'created': '2025-06-08T05:56:43', 'last-modified': '2025-06-08T05:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490903'}
2025-06-08 05:56:46,305 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-08 05:56:46,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54289770 passed
2025-06-08 05:56:46,305 - DEBUG - ====Verifying policy data for ctest-vn-54289770 in API_Server ======
2025-06-08 05:56:46,305 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-08 05:56:46,310 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ef39dcba-23d3-4b6d-ad38-c86438737af2
2025-06-08 05:56:46,322 - DEBUG - Requesting: http://10.0.0.65:8082/project/5ca5ca70-2bf4-45c8-bf6d-03840031eb4b
2025-06-08 05:56:46,395 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/463b662f-c051-4345-be70-1114f5850695
2025-06-08 05:56:46,406 - DEBUG - ==>Verifying data for policy with id: ca7eabc7-382f-426e-8f18-89cba8d2f0e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-06692943', 'ctest-policy-allow-all-43409632']
2025-06-08 05:56:46,406 - INFO - VN ctest-vn-54289770 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-08 05:56:46,406 - DEBUG - Verifying the vn in opserver
2025-06-08 05:56:46,406 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770 virtual network link through opserver 10.0.0.65
2025-06-08 05:56:46,406 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-08 05:56:46,417 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770?flat'}
2025-06-08 05:56:46,418 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06692943:ctest-vn-54289770 is found in opserver
2025-06-08 05:56:46,429 - DEBUG - Do not have enough data to verify VN in agent
2025-06-08 05:56:46,434 - DEBUG - VRF ids for VN ctest-vn-54289770: {}
2025-06-08 05:56:46,488 - DEBUG - Services list from nova: [