2025-06-18 12:28:04,607 - INFO - Domain Default found not creating
2025-06-18 12:28:04,907 - INFO - Project ctest-TestBasicPolicy-08375606 not found, creating it
2025-06-18 12:28:05,357 - INFO - Created Project:ctest-TestBasicPolicy-08375606, ID : 3b7fdb3f-c673-4f08-aff0-8583ecd63907
2025-06-18 12:28:06,827 - INFO - ================================================================================
2025-06-18 12:28:06,827 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 12:28:06,827 - 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-18 12:28:07,087 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-18 12:28:07,087 - INFO - Initial checks done. Running the testcase now
2025-06-18 12:28:07,087 - INFO -
2025-06-18 12:28:07,653 - DEBUG - Response for create_network : {'network': {'id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'name': 'ctest-vn-78675598', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-78675598'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 12:28:07,853 - DEBUG - Response for create_subnet : {'subnet': {'id': '41ac6be9-7b90-43b5-bae7-f23fd646f864', 'name': '', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'network_id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'ip_version': 4, 'cidr': '52.30.39.64/26', 'allocation_pools': [{'start': '52.30.39.66', 'end': '52.30.39.126'}], 'gateway_ip': '52.30.39.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.30.39.66', 'tags': [], 'project_id': '3b7fdb3fc6734f08aff08583ecd63907'}}
2025-06-18 12:28:07,871 - INFO - Created VN ctest-vn-78675598
2025-06-18 12:28:07,925 - DEBUG - VN ctest-vn-78675598 UUID is cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:08,232 - DEBUG - Response for create_network : {'network': {'id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'name': 'ctest-vn-05959672', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-05959672'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 12:28:08,437 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cbf9bbb8-ba11-4511-bc4b-5b7ae7b93b0a', 'name': '', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'network_id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'ip_version': 4, 'cidr': '98.162.183.128/26', 'allocation_pools': [{'start': '98.162.183.130', 'end': '98.162.183.190'}], 'gateway_ip': '98.162.183.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.162.183.130', 'tags': [], 'project_id': '3b7fdb3fc6734f08aff08583ecd63907'}}
2025-06-18 12:28:08,455 - INFO - Created VN ctest-vn-05959672
2025-06-18 12:28:08,509 - DEBUG - VN ctest-vn-05959672 UUID is e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:08,637 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598, 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-08375606:ctest-vn-05959672, 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-18 12:28:08,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf84bd32-cf84-4b30-bb6f-9c0add92ea66', 'name': 'ctest-vn-78675598', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41ac6be9-7b90-43b5-bae7-f23fd646f864'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-78675598'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']], 'subnet_ipam': [{'subnet_cidr': '52.30.39.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 12:28:09,196 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1718723-4717-4fb4-a1f7-23edf343ab14', 'name': 'ctest-vn-05959672', 'tenant_id': '3b7fdb3fc6734f08aff08583ecd63907', 'project_id': '3b7fdb3fc6734f08aff08583ecd63907', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cbf9bbb8-ba11-4511-bc4b-5b7ae7b93b0a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-vn-05959672'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']], 'subnet_ipam': [{'subnet_cidr': '98.162.183.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 12:28:09,345 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 12:28:09,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 12:28:09,675 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd
2025-06-18 12:28:09,694 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907
2025-06-18 12:28:09,772 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:09,785 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:09,796 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537
2025-06-18 12:28:09,804 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537
2025-06-18 12:28:09,813 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/40468d0b-f42c-4f54-a4bc-e7485e33a381
2025-06-18 12:28:09,820 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 12:28:09,820 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:09,831 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537
2025-06-18 12:28:09,855 - INFO - Verified VN network id 8 for VN cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:09,855 - INFO - Verifications in API Server for VN ctest-vn-78675598 passed
2025-06-18 12:28:09,855 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:09,868 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537
2025-06-18 12:28:09,876 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c4633094-3cbc-4fcd-ae9a-476a8be3a537
2025-06-18 12:28:09,885 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/40468d0b-f42c-4f54-a4bc-e7485e33a381
2025-06-18 12:28:09,903 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375606', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14953284688704457520', 'uuid-lslong': '13506185377988405862'}, 'enable': 'true', 'created': '2025-06-18T12:28:07', 'last-modified': '2025-06-18T12:28:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979833'}
2025-06-18 12:28:09,910 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 12:28:09,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78675598 passed
2025-06-18 12:28:09,910 - DEBUG - ====Verifying policy data for ctest-vn-78675598 in API_Server ======
2025-06-18 12:28:09,910 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 12:28:09,917 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd
2025-06-18 12:28:09,930 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907
2025-06-18 12:28:10,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/cf84bd32-cf84-4b30-bb6f-9c0add92ea66
2025-06-18 12:28:10,022 - DEBUG - ==>Verifying data for policy with id: 6be639b4-0038-4067-858e-abe812f59404, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']
2025-06-18 12:28:10,022 - INFO - VN ctest-vn-78675598 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 12:28:10,022 - DEBUG - Verifying the vn in opserver
2025-06-18 12:28:10,022 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598 virtual network link through opserver 10.0.0.254
2025-06-18 12:28:10,022 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 12:28:10,317 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 12:28:10,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598?flat'}
2025-06-18 12:28:10,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-78675598 is found in opserver
2025-06-18 12:28:10,401 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 12:28:10,409 - DEBUG - VRF ids for VN ctest-vn-78675598: {}
2025-06-18 12:28:10,409 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 12:28:10,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd
2025-06-18 12:28:10,434 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907
2025-06-18 12:28:10,513 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,528 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,539 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9
2025-06-18 12:28:10,548 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9
2025-06-18 12:28:10,555 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d9302e06-f477-46b7-9f20-d2466f2b201c
2025-06-18 12:28:10,567 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 12:28:10,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,580 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9
2025-06-18 12:28:10,598 - INFO - Verified VN network id 9 for VN e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,598 - INFO - Verifications in API Server for VN ctest-vn-05959672 passed
2025-06-18 12:28:10,598 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,608 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9
2025-06-18 12:28:10,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/bba1fff7-d1dc-42af-906a-40ec283a10e9
2025-06-18 12:28:10,624 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d9302e06-f477-46b7-9f20-d2466f2b201c
2025-06-18 12:28:10,638 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08375606', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16244913916488404916', 'uuid-lslong': '11670836464249449236'}, 'enable': 'true', 'created': '2025-06-18T12:28:08', 'last-modified': '2025-06-18T12:28:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463666'}
2025-06-18 12:28:10,644 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 12:28:10,644 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05959672 passed
2025-06-18 12:28:10,645 - DEBUG - ====Verifying policy data for ctest-vn-05959672 in API_Server ======
2025-06-18 12:28:10,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-18 12:28:10,651 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b0bc7422-8987-444c-b9a8-c65fd263c9bd
2025-06-18 12:28:10,663 - DEBUG - Requesting: http://10.0.0.254:8082/project/3b7fdb3f-c673-4f08-aff0-8583ecd63907
2025-06-18 12:28:10,747 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e1718723-4717-4fb4-a1f7-23edf343ab14
2025-06-18 12:28:10,759 - DEBUG - ==>Verifying data for policy with id: 6be639b4-0038-4067-858e-abe812f59404, fqn: ['default-domain', 'ctest-TestBasicPolicy-08375606', 'ctest-policy-allow-all-39693386']
2025-06-18 12:28:10,759 - INFO - VN ctest-vn-05959672 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 12:28:10,759 - DEBUG - Verifying the vn in opserver
2025-06-18 12:28:10,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672 virtual network link through opserver 10.0.0.254
2025-06-18 12:28:10,759 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-18 12:28:10,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672?flat'}
2025-06-18 12:28:10,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08375606:ctest-vn-05959672 is found in opserver
2025-06-18 12:28:10,787 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 12:28:10,792 - DEBUG - VRF ids for VN ctest-vn-05959672: {}
2025-06-18 12:28:10,857 - DEBUG - Services list from nova: [