2025-08-11 20:42:26,211 - INFO - Domain Default found not creating
2025-08-11 20:42:26,329 - INFO - Project ctest-TestBasicPolicy-11144235 not found, creating it
2025-08-11 20:42:26,751 - INFO - Created Project:ctest-TestBasicPolicy-11144235, ID : d98bfafd-b7bb-4dbe-9073-71ef1e548be3
2025-08-11 20:42:28,138 - INFO - ================================================================================
2025-08-11 20:42:28,139 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 20:42:28,139 - 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-11 20:42:28,396 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-08-11 20:42:28,396 - INFO - Initial checks done. Running the testcase now
2025-08-11 20:42:28,396 - INFO -
2025-08-11 20:42:28,902 - DEBUG - Response for create_network : {'network': {'id': 'fd043203-4cdc-4c74-b768-799d4e5a545c', 'name': 'ctest-vn-31189877', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-vn-31189877'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:42:29,109 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ffbaf9ef-3be5-4e13-be70-5aea08d06b7d', 'name': '', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'network_id': 'fd043203-4cdc-4c74-b768-799d4e5a545c', 'ip_version': 4, 'cidr': '157.54.194.128/26', 'allocation_pools': [{'start': '157.54.194.130', 'end': '157.54.194.190'}], 'gateway_ip': '157.54.194.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '157.54.194.130', 'tags': [], 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3'}}
2025-08-11 20:42:29,128 - INFO - Created VN ctest-vn-31189877
2025-08-11 20:42:29,179 - DEBUG - VN ctest-vn-31189877 UUID is fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:29,484 - DEBUG - Response for create_network : {'network': {'id': '374126bc-fc43-474b-9fb8-4e95bf97a28e', 'name': 'ctest-vn-23318979', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-vn-23318979'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:42:29,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '46d94a09-36bd-4431-bb66-b6cc670a6ac4', 'name': '', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'network_id': '374126bc-fc43-474b-9fb8-4e95bf97a28e', 'ip_version': 4, 'cidr': '70.213.156.192/26', 'allocation_pools': [{'start': '70.213.156.194', 'end': '70.213.156.254'}], 'gateway_ip': '70.213.156.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.213.156.194', 'tags': [], 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3'}}
2025-08-11 20:42:29,675 - INFO - Created VN ctest-vn-23318979
2025-08-11 20:42:29,727 - DEBUG - VN ctest-vn-23318979 UUID is 374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:29,871 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877, 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-11144235:ctest-vn-23318979, 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-11 20:42:30,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fd043203-4cdc-4c74-b768-799d4e5a545c', 'name': 'ctest-vn-31189877', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ffbaf9ef-3be5-4e13-be70-5aea08d06b7d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-vn-31189877'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-policy-allow-all-88850210']], 'subnet_ipam': [{'subnet_cidr': '157.54.194.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:42:30,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '374126bc-fc43-474b-9fb8-4e95bf97a28e', 'name': 'ctest-vn-23318979', 'tenant_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'project_id': 'd98bfafdb7bb4dbe907371ef1e548be3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46d94a09-36bd-4431-bb66-b6cc670a6ac4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-vn-23318979'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-policy-allow-all-88850210']], 'subnet_ipam': [{'subnet_cidr': '70.213.156.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 20:42:30,563 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 20:42:30,849 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 20:42:30,873 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3d83caa-9eea-4bb9-ac82-dfc2d1417913
2025-08-11 20:42:30,886 - DEBUG - Requesting: http://10.0.0.50:8082/project/d98bfafd-b7bb-4dbe-9073-71ef1e548be3
2025-08-11 20:42:30,957 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:30,967 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:30,976 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd2a08f1-9961-44d5-bb2f-9b0097f66722
2025-08-11 20:42:30,982 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd2a08f1-9961-44d5-bb2f-9b0097f66722
2025-08-11 20:42:30,989 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79286fc2-959d-472c-88bf-49501159b7cf
2025-08-11 20:42:30,994 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 20:42:30,994 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:31,003 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd2a08f1-9961-44d5-bb2f-9b0097f66722
2025-08-11 20:42:31,015 - INFO - Verified VN network id 11 for VN fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:31,015 - INFO - Verifications in API Server for VN ctest-vn-31189877 passed
2025-08-11 20:42:31,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:31,024 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd2a08f1-9961-44d5-bb2f-9b0097f66722
2025-08-11 20:42:31,030 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fd2a08f1-9961-44d5-bb2f-9b0097f66722
2025-08-11 20:42:31,036 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/79286fc2-959d-472c-88bf-49501159b7cf
2025-08-11 20:42:31,047 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11144235', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18231752181258407028', 'uuid-lslong': '13215946823050089564'}, 'enable': 'true', 'created': '2025-08-11T20:42:28', 'last-modified': '2025-08-11T20:42:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.913590'}
2025-08-11 20:42:31,055 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 20:42:31,055 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31189877 passed
2025-08-11 20:42:31,055 - DEBUG - ====Verifying policy data for ctest-vn-31189877 in API_Server ======
2025-08-11 20:42:31,055 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 20:42:31,060 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3d83caa-9eea-4bb9-ac82-dfc2d1417913
2025-08-11 20:42:31,071 - DEBUG - Requesting: http://10.0.0.50:8082/project/d98bfafd-b7bb-4dbe-9073-71ef1e548be3
2025-08-11 20:42:31,146 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/fd043203-4cdc-4c74-b768-799d4e5a545c
2025-08-11 20:42:31,160 - DEBUG - ==>Verifying data for policy with id: 0f0337c1-ff1d-4b6c-87b7-31ecdd74a286, fqn: ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-policy-allow-all-88850210']
2025-08-11 20:42:31,160 - INFO - VN ctest-vn-31189877 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 20:42:31,160 - DEBUG - Verifying the vn in opserver
2025-08-11 20:42:31,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877 virtual network link through opserver 10.0.0.50
2025-08-11 20:42:31,160 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 20:42:31,449 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 20:42:31,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877?flat'}
2025-08-11 20:42:31,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-31189877 is found in opserver
2025-08-11 20:42:31,507 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 20:42:31,512 - DEBUG - VRF ids for VN ctest-vn-31189877: {}
2025-08-11 20:42:31,512 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 20:42:31,517 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3d83caa-9eea-4bb9-ac82-dfc2d1417913
2025-08-11 20:42:31,528 - DEBUG - Requesting: http://10.0.0.50:8082/project/d98bfafd-b7bb-4dbe-9073-71ef1e548be3
2025-08-11 20:42:31,594 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,604 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,612 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b1028a3-a55e-45fd-847a-7de583e24532
2025-08-11 20:42:31,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b1028a3-a55e-45fd-847a-7de583e24532
2025-08-11 20:42:31,624 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67902442-c8c9-43c4-bf12-85527db0c426
2025-08-11 20:42:31,629 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 20:42:31,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,637 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b1028a3-a55e-45fd-847a-7de583e24532
2025-08-11 20:42:31,648 - INFO - Verified VN network id 12 for VN 374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,648 - INFO - Verifications in API Server for VN ctest-vn-23318979 passed
2025-08-11 20:42:31,649 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,657 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b1028a3-a55e-45fd-847a-7de583e24532
2025-08-11 20:42:31,663 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b1028a3-a55e-45fd-847a-7de583e24532
2025-08-11 20:42:31,669 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/67902442-c8c9-43c4-bf12-85527db0c426
2025-08-11 20:42:31,679 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-23318979', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11144235', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3981506138700203851', 'uuid-lslong': '11509035252816781966'}, 'enable': 'true', 'created': '2025-08-11T20:42:29', 'last-modified': '2025-08-11T20:42:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.311864'}
2025-08-11 20:42:31,685 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 20:42:31,685 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23318979 passed
2025-08-11 20:42:31,686 - DEBUG - ====Verifying policy data for ctest-vn-23318979 in API_Server ======
2025-08-11 20:42:31,686 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-11 20:42:31,690 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a3d83caa-9eea-4bb9-ac82-dfc2d1417913
2025-08-11 20:42:31,701 - DEBUG - Requesting: http://10.0.0.50:8082/project/d98bfafd-b7bb-4dbe-9073-71ef1e548be3
2025-08-11 20:42:31,772 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/374126bc-fc43-474b-9fb8-4e95bf97a28e
2025-08-11 20:42:31,785 - DEBUG - ==>Verifying data for policy with id: 0f0337c1-ff1d-4b6c-87b7-31ecdd74a286, fqn: ['default-domain', 'ctest-TestBasicPolicy-11144235', 'ctest-policy-allow-all-88850210']
2025-08-11 20:42:31,785 - INFO - VN ctest-vn-23318979 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 20:42:31,785 - DEBUG - Verifying the vn in opserver
2025-08-11 20:42:31,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-23318979 virtual network link through opserver 10.0.0.50
2025-08-11 20:42:31,785 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-11 20:42:31,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-23318979', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-23318979?flat'}
2025-08-11 20:42:31,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11144235:ctest-vn-23318979 is found in opserver
2025-08-11 20:42:31,807 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 20:42:31,812 - DEBUG - VRF ids for VN ctest-vn-23318979: {}
2025-08-11 20:42:31,860 - DEBUG - Services list from nova: [