2025-08-18 19:43:17,287 - INFO - Domain Default found not creating
2025-08-18 19:43:17,426 - INFO - Project ctest-TestBasicPolicy-99811014 not found, creating it
2025-08-18 19:43:17,889 - INFO - Created Project:ctest-TestBasicPolicy-99811014, ID : 1d7bdd07-f7d4-43e9-8502-03230ebc8d6b
2025-08-18 19:43:19,209 - INFO - ================================================================================
2025-08-18 19:43:19,209 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-18 19:43:19,210 - 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-08-18 19:43:19,463 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-08-18 19:43:19,463 - INFO - Initial checks done. Running the testcase now
2025-08-18 19:43:19,463 - INFO -
2025-08-18 19:43:19,984 - DEBUG - Response for create_network : {'network': {'id': '3910cd80-dca3-4bd8-877f-04a2a23de130', 'name': 'ctest-vn-87919938', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-vn-87919938'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:43:20,178 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd42dc75-742a-4ea7-91ce-77eafd84de97', 'name': '', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'network_id': '3910cd80-dca3-4bd8-877f-04a2a23de130', 'ip_version': 4, 'cidr': '53.32.2.192/26', 'allocation_pools': [{'start': '53.32.2.194', 'end': '53.32.2.254'}], 'gateway_ip': '53.32.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.32.2.194', 'tags': [], 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b'}}
2025-08-18 19:43:20,194 - INFO - Created VN ctest-vn-87919938
2025-08-18 19:43:20,246 - DEBUG - VN ctest-vn-87919938 UUID is 3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:20,519 - DEBUG - Response for create_network : {'network': {'id': '8bfb0d02-6dfc-459a-9d0e-b62b27c0e971', 'name': 'ctest-vn-76633747', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-vn-76633747'], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:43:20,682 - DEBUG - Response for create_subnet : {'subnet': {'id': '2989b8b6-5bc7-4f93-a402-7f4d42bd1814', 'name': '', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'network_id': '8bfb0d02-6dfc-459a-9d0e-b62b27c0e971', 'ip_version': 4, 'cidr': '29.36.8.192/26', 'allocation_pools': [{'start': '29.36.8.194', 'end': '29.36.8.254'}], 'gateway_ip': '29.36.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29.36.8.194', 'tags': [], 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b'}}
2025-08-18 19:43:20,698 - INFO - Created VN ctest-vn-76633747
2025-08-18 19:43:20,750 - DEBUG - VN ctest-vn-76633747 UUID is 8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:20,898 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938, 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-99811014:ctest-vn-76633747, 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-08-18 19:43:21,192 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3910cd80-dca3-4bd8-877f-04a2a23de130', 'name': 'ctest-vn-87919938', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fd42dc75-742a-4ea7-91ce-77eafd84de97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-vn-87919938'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-policy-allow-all-99562203']], 'subnet_ipam': [{'subnet_cidr': '53.32.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:43:21,409 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8bfb0d02-6dfc-459a-9d0e-b62b27c0e971', 'name': 'ctest-vn-76633747', 'tenant_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'project_id': '1d7bdd07f7d443e9850203230ebc8d6b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2989b8b6-5bc7-4f93-a402-7f4d42bd1814'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-vn-76633747'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-policy-allow-all-99562203']], 'subnet_ipam': [{'subnet_cidr': '29.36.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-18 19:43:21,582 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 19:43:21,871 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 19:43:21,896 - DEBUG - Requesting: http://10.0.0.38:8082/domain/18d96444-b3da-4cfc-9bdb-15b76434c786
2025-08-18 19:43:21,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/1d7bdd07-f7d4-43e9-8502-03230ebc8d6b
2025-08-18 19:43:21,976 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:21,986 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:21,994 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91896c3b-121c-4e49-9e88-8954d30050d6
2025-08-18 19:43:22,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91896c3b-121c-4e49-9e88-8954d30050d6
2025-08-18 19:43:22,005 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b9625cc-c8f0-43cc-b0c1-9961e83d62e5
2025-08-18 19:43:22,011 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 19:43:22,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:22,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91896c3b-121c-4e49-9e88-8954d30050d6
2025-08-18 19:43:22,030 - INFO - Verified VN network id 10 for VN 3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:22,030 - INFO - Verifications in API Server for VN ctest-vn-87919938 passed
2025-08-18 19:43:22,030 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:22,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91896c3b-121c-4e49-9e88-8954d30050d6
2025-08-18 19:43:22,043 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/91896c3b-121c-4e49-9e88-8954d30050d6
2025-08-18 19:43:22,048 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9b9625cc-c8f0-43cc-b0c1-9961e83d62e5
2025-08-18 19:43:22,058 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99811014', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4112012413130460120', 'uuid-lslong': '9763527613715702064'}, 'enable': 'true', 'created': '2025-08-18T19:43:19', 'last-modified': '2025-08-18T19:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.896129'}
2025-08-18 19:43:22,064 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-18 19:43:22,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87919938 passed
2025-08-18 19:43:22,064 - DEBUG - ====Verifying policy data for ctest-vn-87919938 in API_Server ======
2025-08-18 19:43:22,064 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 19:43:22,069 - DEBUG - Requesting: http://10.0.0.38:8082/domain/18d96444-b3da-4cfc-9bdb-15b76434c786
2025-08-18 19:43:22,078 - DEBUG - Requesting: http://10.0.0.38:8082/project/1d7bdd07-f7d4-43e9-8502-03230ebc8d6b
2025-08-18 19:43:22,147 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3910cd80-dca3-4bd8-877f-04a2a23de130
2025-08-18 19:43:22,156 - DEBUG - ==>Verifying data for policy with id: 9c733ced-3a83-4b1f-a466-7f54939b1164, fqn: ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-policy-allow-all-99562203']
2025-08-18 19:43:22,156 - INFO - VN ctest-vn-87919938 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 19:43:22,156 - DEBUG - Verifying the vn in opserver
2025-08-18 19:43:22,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938 virtual network link through opserver 10.0.0.38
2025-08-18 19:43:22,157 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 19:43:22,445 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 19:43:22,497 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938?flat'}
2025-08-18 19:43:22,497 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-87919938 is found in opserver
2025-08-18 19:43:22,507 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 19:43:22,512 - DEBUG - VRF ids for VN ctest-vn-87919938: {}
2025-08-18 19:43:22,512 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 19:43:22,517 - DEBUG - Requesting: http://10.0.0.38:8082/domain/18d96444-b3da-4cfc-9bdb-15b76434c786
2025-08-18 19:43:22,527 - DEBUG - Requesting: http://10.0.0.38:8082/project/1d7bdd07-f7d4-43e9-8502-03230ebc8d6b
2025-08-18 19:43:22,602 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,622 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f883a65e-eb1c-4c03-8826-175b36afdbcb
2025-08-18 19:43:22,629 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f883a65e-eb1c-4c03-8826-175b36afdbcb
2025-08-18 19:43:22,635 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55096adc-699b-4562-8c3b-54895b4c5daf
2025-08-18 19:43:22,640 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 19:43:22,640 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f883a65e-eb1c-4c03-8826-175b36afdbcb
2025-08-18 19:43:22,660 - INFO - Verified VN network id 11 for VN 8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,660 - INFO - Verifications in API Server for VN ctest-vn-76633747 passed
2025-08-18 19:43:22,660 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,668 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f883a65e-eb1c-4c03-8826-175b36afdbcb
2025-08-18 19:43:22,674 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f883a65e-eb1c-4c03-8826-175b36afdbcb
2025-08-18 19:43:22,679 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/55096adc-699b-4562-8c3b-54895b4c5daf
2025-08-18 19:43:22,690 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-76633747', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99811014', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10086670094512702874', 'uuid-lslong': '11317183210095438193'}, 'enable': 'true', 'created': '2025-08-18T19:43:20', 'last-modified': '2025-08-18T19:43:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.300902'}
2025-08-18 19:43:22,695 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-18 19:43:22,695 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-76633747 passed
2025-08-18 19:43:22,695 - DEBUG - ====Verifying policy data for ctest-vn-76633747 in API_Server ======
2025-08-18 19:43:22,695 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-08-18 19:43:22,700 - DEBUG - Requesting: http://10.0.0.38:8082/domain/18d96444-b3da-4cfc-9bdb-15b76434c786
2025-08-18 19:43:22,710 - DEBUG - Requesting: http://10.0.0.38:8082/project/1d7bdd07-f7d4-43e9-8502-03230ebc8d6b
2025-08-18 19:43:22,783 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/8bfb0d02-6dfc-459a-9d0e-b62b27c0e971
2025-08-18 19:43:22,792 - DEBUG - ==>Verifying data for policy with id: 9c733ced-3a83-4b1f-a466-7f54939b1164, fqn: ['default-domain', 'ctest-TestBasicPolicy-99811014', 'ctest-policy-allow-all-99562203']
2025-08-18 19:43:22,792 - INFO - VN ctest-vn-76633747 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-18 19:43:22,792 - DEBUG - Verifying the vn in opserver
2025-08-18 19:43:22,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-76633747 virtual network link through opserver 10.0.0.38
2025-08-18 19:43:22,792 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-08-18 19:43:22,802 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-76633747', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-76633747?flat'}
2025-08-18 19:43:22,802 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99811014:ctest-vn-76633747 is found in opserver
2025-08-18 19:43:22,811 - DEBUG - Do not have enough data to verify VN in agent
2025-08-18 19:43:22,815 - DEBUG - VRF ids for VN ctest-vn-76633747: {}
2025-08-18 19:43:22,869 - DEBUG - Services list from nova: [