2025-03-27 15:00:43,960 - INFO - Domain Default found not creating
2025-03-27 15:00:44,144 - INFO - Project ctest-TestBasicPolicy-87944825 not found, creating it
2025-03-27 15:00:44,653 - INFO - Created Project:ctest-TestBasicPolicy-87944825, ID : 74493b15-10c2-4b81-a9cf-e23620c981cd
2025-03-27 15:00:46,206 - INFO - ================================================================================
2025-03-27 15:00:46,206 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 15:00:46,206 - 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-03-27 15:00:46,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.23': '0'}} with
2025-03-27 15:00:46,465 - INFO - Initial checks done. Running the testcase now
2025-03-27 15:00:46,465 - INFO -
2025-03-27 15:00:47,113 - DEBUG - Response for create_network : {'network': {'id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'name': 'ctest-vn-26352622', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-26352622'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:00:47,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb2bef27-9c60-4fc8-be94-32bccaf97a3e', 'name': '', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'network_id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'ip_version': 4, 'cidr': '92.215.183.128/26', 'allocation_pools': [{'start': '92.215.183.130', 'end': '92.215.183.190'}], 'gateway_ip': '92.215.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '92.215.183.130', 'tags': [], 'project_id': '74493b1510c24b81a9cfe23620c981cd'}}
2025-03-27 15:00:47,308 - INFO - Created VN ctest-vn-26352622
2025-03-27 15:00:47,366 - DEBUG - VN ctest-vn-26352622 UUID is bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:47,728 - DEBUG - Response for create_network : {'network': {'id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'name': 'ctest-vn-48129117', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-48129117'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:00:47,960 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1665cab-97c6-49ec-b37c-67d56f6b358a', 'name': '', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'network_id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'ip_version': 4, 'cidr': '95.217.178.128/26', 'allocation_pools': [{'start': '95.217.178.130', 'end': '95.217.178.190'}], 'gateway_ip': '95.217.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.217.178.130', 'tags': [], 'project_id': '74493b1510c24b81a9cfe23620c981cd'}}
2025-03-27 15:00:47,985 - INFO - Created VN ctest-vn-48129117
2025-03-27 15:00:48,046 - DEBUG - VN ctest-vn-48129117 UUID is dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:48,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622, 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-87944825:ctest-vn-48129117, 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-03-27 15:00:48,529 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bbe7aaf1-c925-42df-a4a2-e9c5838f466e', 'name': 'ctest-vn-26352622', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb2bef27-9c60-4fc8-be94-32bccaf97a3e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-26352622'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']], 'subnet_ipam': [{'subnet_cidr': '92.215.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:00:48,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dee40f36-1790-48ea-86c4-d21dc4b46d4a', 'name': 'ctest-vn-48129117', 'tenant_id': '74493b1510c24b81a9cfe23620c981cd', 'project_id': '74493b1510c24b81a9cfe23620c981cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1665cab-97c6-49ec-b37c-67d56f6b358a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-vn-48129117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']], 'subnet_ipam': [{'subnet_cidr': '95.217.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 15:00:48,998 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-27 15:00:49,321 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-27 15:00:49,360 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8
2025-03-27 15:00:49,376 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd
2025-03-27 15:00:49,459 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,477 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,489 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b
2025-03-27 15:00:49,498 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b
2025-03-27 15:00:49,509 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1a6a0b9a-47bd-4eb3-a8a2-0c68b2b940da
2025-03-27 15:00:49,519 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 15:00:49,519 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,531 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b
2025-03-27 15:00:49,550 - INFO - Verified VN network id 8 for VN bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,550 - INFO - Verifications in API Server for VN ctest-vn-26352622 passed
2025-03-27 15:00:49,550 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,563 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b
2025-03-27 15:00:49,574 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/ef23d8f6-6e2e-49ea-9921-ff324d7c9c2b
2025-03-27 15:00:49,584 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/1a6a0b9a-47bd-4eb3-a8a2-0c68b2b940da
2025-03-27 15:00:49,599 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87944825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13539978760151188191', 'uuid-lslong': '11863301402972341870'}, 'enable': 'true', 'created': '2025-03-27T15:00:47', 'last-modified': '2025-03-27T15:00:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.111832'}
2025-03-27 15:00:49,607 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 15:00:49,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26352622 passed
2025-03-27 15:00:49,607 - DEBUG - ====Verifying policy data for ctest-vn-26352622 in API_Server ======
2025-03-27 15:00:49,607 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-27 15:00:49,615 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8
2025-03-27 15:00:49,630 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd
2025-03-27 15:00:49,716 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/bbe7aaf1-c925-42df-a4a2-e9c5838f466e
2025-03-27 15:00:49,728 - DEBUG - ==>Verifying data for policy with id: 5d37c793-ad2a-497a-8cb0-4ad7dfd8a781, fqn: ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']
2025-03-27 15:00:49,728 - INFO - VN ctest-vn-26352622 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 15:00:49,728 - DEBUG - Verifying the vn in opserver
2025-03-27 15:00:49,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622 virtual network link through opserver 10.0.0.42
2025-03-27 15:00:49,728 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-27 15:00:50,026 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-27 15:00:50,099 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622?flat'}
2025-03-27 15:00:50,099 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-26352622 is found in opserver
2025-03-27 15:00:50,114 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 15:00:50,122 - DEBUG - VRF ids for VN ctest-vn-26352622: {}
2025-03-27 15:00:50,122 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-27 15:00:50,128 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8
2025-03-27 15:00:50,143 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd
2025-03-27 15:00:50,229 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,243 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,254 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb
2025-03-27 15:00:50,264 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb
2025-03-27 15:00:50,272 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fee8a1c6-cf7f-44bb-90b7-cd631d7d6426
2025-03-27 15:00:50,286 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 15:00:50,286 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,300 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb
2025-03-27 15:00:50,322 - INFO - Verified VN network id 9 for VN dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,322 - INFO - Verifications in API Server for VN ctest-vn-48129117 passed
2025-03-27 15:00:50,322 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,335 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb
2025-03-27 15:00:50,344 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/500008d4-f7fb-474f-aa03-25c326acdecb
2025-03-27 15:00:50,357 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/fee8a1c6-cf7f-44bb-90b7-cd631d7d6426
2025-03-27 15:00:50,374 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87944825', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16060978896108013802', 'uuid-lslong': '9711117721813675338'}, 'enable': 'true', 'created': '2025-03-27T15:00:47', 'last-modified': '2025-03-27T15:00:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.593309'}
2025-03-27 15:00:50,383 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 15:00:50,383 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48129117 passed
2025-03-27 15:00:50,383 - DEBUG - ====Verifying policy data for ctest-vn-48129117 in API_Server ======
2025-03-27 15:00:50,383 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2025-03-27 15:00:50,391 - DEBUG - Requesting: http://10.0.0.42:8082/domain/506e3f66-38fa-4413-937a-50db00ec8ab8
2025-03-27 15:00:50,408 - DEBUG - Requesting: http://10.0.0.42:8082/project/74493b15-10c2-4b81-a9cf-e23620c981cd
2025-03-27 15:00:50,484 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/dee40f36-1790-48ea-86c4-d21dc4b46d4a
2025-03-27 15:00:50,495 - DEBUG - ==>Verifying data for policy with id: 5d37c793-ad2a-497a-8cb0-4ad7dfd8a781, fqn: ['default-domain', 'ctest-TestBasicPolicy-87944825', 'ctest-policy-allow-all-21961719']
2025-03-27 15:00:50,495 - INFO - VN ctest-vn-48129117 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 15:00:50,495 - DEBUG - Verifying the vn in opserver
2025-03-27 15:00:50,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117 virtual network link through opserver 10.0.0.42
2025-03-27 15:00:50,495 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2025-03-27 15:00:50,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117?flat'}
2025-03-27 15:00:50,508 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87944825:ctest-vn-48129117 is found in opserver
2025-03-27 15:00:50,524 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 15:00:50,531 - DEBUG - VRF ids for VN ctest-vn-48129117: {}
2025-03-27 15:00:50,613 - DEBUG - Services list from nova: [