2025-01-02 23:26:59,386 - INFO - Domain Default found not creating
2025-01-02 23:26:59,528 - INFO - Project ctest-TestBasicPolicy-29237929 not found, creating it
2025-01-02 23:26:59,975 - INFO - Created Project:ctest-TestBasicPolicy-29237929, ID : 3e6fb268-25ac-49ba-a0af-6dfb901cbc2e
2025-01-02 23:27:01,423 - INFO - ================================================================================
2025-01-02 23:27:01,423 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 23:27:01,423 - 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-01-02 23:27:01,676 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.5': '0'}} with
2025-01-02 23:27:01,676 - INFO - Initial checks done. Running the testcase now
2025-01-02 23:27:01,676 - INFO -
2025-01-02 23:27:02,210 - DEBUG - Response for create_network : {'network': {'id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'name': 'ctest-vn-89128306', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-89128306'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 23:27:02,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb628d8a-f764-4509-b5ba-9cabb2e3b224', 'name': '', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'network_id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'ip_version': 4, 'cidr': '58.126.30.64/26', 'allocation_pools': [{'start': '58.126.30.66', 'end': '58.126.30.126'}], 'gateway_ip': '58.126.30.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.126.30.66', 'tags': [], 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e'}}
2025-01-02 23:27:02,399 - INFO - Created VN ctest-vn-89128306
2025-01-02 23:27:02,450 - DEBUG - VN ctest-vn-89128306 UUID is de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:02,762 - DEBUG - Response for create_network : {'network': {'id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'name': 'ctest-vn-82408345', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-82408345'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 23:27:02,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '78e11b78-649c-41f5-8431-12e7131d5740', 'name': '', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'network_id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'ip_version': 4, 'cidr': '204.244.161.192/26', 'allocation_pools': [{'start': '204.244.161.194', 'end': '204.244.161.254'}], 'gateway_ip': '204.244.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.244.161.194', 'tags': [], 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e'}}
2025-01-02 23:27:02,954 - INFO - Created VN ctest-vn-82408345
2025-01-02 23:27:03,006 - DEBUG - VN ctest-vn-82408345 UUID is 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:03,154 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306, 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-29237929:ctest-vn-82408345, 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-01-02 23:27:03,442 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de7218be-c2c0-4aec-b49d-ff248f67b68b', 'name': 'ctest-vn-89128306', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb628d8a-f764-4509-b5ba-9cabb2e3b224'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-89128306'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']], 'subnet_ipam': [{'subnet_cidr': '58.126.30.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 23:27:03,671 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af', 'name': 'ctest-vn-82408345', 'tenant_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'project_id': '3e6fb26825ac49baa0af6dfb901cbc2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78e11b78-649c-41f5-8431-12e7131d5740'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-vn-82408345'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']], 'subnet_ipam': [{'subnet_cidr': '204.244.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 23:27:03,822 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-02 23:27:04,125 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-02 23:27:04,154 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc
2025-01-02 23:27:04,168 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e
2025-01-02 23:27:04,243 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,258 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,269 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217
2025-01-02 23:27:04,277 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217
2025-01-02 23:27:04,285 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7798a20b-0dd1-4c71-a199-bb6712a99dea
2025-01-02 23:27:04,293 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 23:27:04,294 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,305 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217
2025-01-02 23:27:04,321 - INFO - Verified VN network id 9 for VN de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,321 - INFO - Verifications in API Server for VN ctest-vn-89128306 passed
2025-01-02 23:27:04,321 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,331 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217
2025-01-02 23:27:04,339 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/f2573856-59f7-4a10-bc67-a36016bfb217
2025-01-02 23:27:04,347 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7798a20b-0dd1-4c71-a199-bb6712a99dea
2025-01-02 23:27:04,359 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29237929', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16028901231355251436', 'uuid-lslong': '13014839030660445835'}, 'enable': 'true', 'created': '2025-01-02T23:27:02', 'last-modified': '2025-01-02T23:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.932786'}
2025-01-02 23:27:04,366 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 23:27:04,366 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-89128306 passed
2025-01-02 23:27:04,366 - DEBUG - ====Verifying policy data for ctest-vn-89128306 in API_Server ======
2025-01-02 23:27:04,367 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-02 23:27:04,373 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc
2025-01-02 23:27:04,386 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e
2025-01-02 23:27:04,462 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/de7218be-c2c0-4aec-b49d-ff248f67b68b
2025-01-02 23:27:04,474 - DEBUG - ==>Verifying data for policy with id: c990247b-c0bb-4de5-8a9b-db770d6b4d22, fqn: ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']
2025-01-02 23:27:04,474 - INFO - VN ctest-vn-89128306 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 23:27:04,474 - DEBUG - Verifying the vn in opserver
2025-01-02 23:27:04,474 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306 virtual network link through opserver 10.0.0.17
2025-01-02 23:27:04,474 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-02 23:27:04,764 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-02 23:27:04,814 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306?flat'}
2025-01-02 23:27:04,814 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-89128306 is found in opserver
2025-01-02 23:27:04,824 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 23:27:04,829 - DEBUG - VRF ids for VN ctest-vn-89128306: {}
2025-01-02 23:27:04,829 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-02 23:27:04,834 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc
2025-01-02 23:27:04,845 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e
2025-01-02 23:27:04,917 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:04,928 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:04,937 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4
2025-01-02 23:27:04,945 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4
2025-01-02 23:27:04,952 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71b1e263-879e-4cea-85c7-9ab0e93e0dd5
2025-01-02 23:27:04,959 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 23:27:04,959 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:04,968 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4
2025-01-02 23:27:04,981 - INFO - Verified VN network id 10 for VN 500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:04,982 - INFO - Verifications in API Server for VN ctest-vn-82408345 passed
2025-01-02 23:27:04,982 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:04,991 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4
2025-01-02 23:27:04,997 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/9fb9990b-e2fe-4dc7-acd9-01bf4fc63dc4
2025-01-02 23:27:05,005 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/71b1e263-879e-4cea-85c7-9ab0e93e0dd5
2025-01-02 23:27:05,018 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29237929', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5767456830960192106', 'uuid-lslong': '10267294223707148719'}, 'enable': 'true', 'created': '2025-01-02T23:27:02', 'last-modified': '2025-01-02T23:27:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.370350'}
2025-01-02 23:27:05,024 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 23:27:05,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82408345 passed
2025-01-02 23:27:05,024 - DEBUG - ====Verifying policy data for ctest-vn-82408345 in API_Server ======
2025-01-02 23:27:05,024 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2025-01-02 23:27:05,030 - DEBUG - Requesting: http://10.0.0.17:8082/domain/2b4552d9-1325-4362-9533-6f1f67cc86dc
2025-01-02 23:27:05,041 - DEBUG - Requesting: http://10.0.0.17:8082/project/3e6fb268-25ac-49ba-a0af-6dfb901cbc2e
2025-01-02 23:27:05,116 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/500a1f6e-32c8-4a6a-8e7c-c1b2b07c11af
2025-01-02 23:27:05,128 - DEBUG - ==>Verifying data for policy with id: c990247b-c0bb-4de5-8a9b-db770d6b4d22, fqn: ['default-domain', 'ctest-TestBasicPolicy-29237929', 'ctest-policy-allow-all-88699283']
2025-01-02 23:27:05,128 - INFO - VN ctest-vn-82408345 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 23:27:05,128 - DEBUG - Verifying the vn in opserver
2025-01-02 23:27:05,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345 virtual network link through opserver 10.0.0.17
2025-01-02 23:27:05,128 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2025-01-02 23:27:05,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345?flat'}
2025-01-02 23:27:05,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29237929:ctest-vn-82408345 is found in opserver
2025-01-02 23:27:05,152 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 23:27:05,157 - DEBUG - VRF ids for VN ctest-vn-82408345: {}
2025-01-02 23:27:05,216 - DEBUG - Services list from nova: [