2025-04-27 08:21:02,184 - INFO - Domain Default found not creating
2025-04-27 08:21:02,469 - INFO - Project ctest-TestBasicPolicy-10367648 not found, creating it
2025-04-27 08:21:03,257 - INFO - Created Project:ctest-TestBasicPolicy-10367648, ID : 99ec7f4c-0aed-46dd-be18-8a04146a35c1
2025-04-27 08:21:05,440 - INFO - ================================================================================
2025-04-27 08:21:05,440 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-27 08:21:05,441 - 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-04-27 08:21:05,758 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-04-27 08:21:05,758 - INFO - Initial checks done. Running the testcase now
2025-04-27 08:21:05,758 - INFO -
2025-04-27 08:21:06,791 - DEBUG - Response for create_network : {'network': {'id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'name': 'ctest-vn-04000066', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-04000066'], 'port_security_enabled': True, 'description': ''}}
2025-04-27 08:21:07,072 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b913d602-c050-45e4-8bad-6971b7f47436', 'name': '', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'network_id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'ip_version': 4, 'cidr': '168.94.153.192/26', 'allocation_pools': [{'start': '168.94.153.194', 'end': '168.94.153.254'}], 'gateway_ip': '168.94.153.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.94.153.194', 'tags': [], 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1'}}
2025-04-27 08:21:07,099 - INFO - Created VN ctest-vn-04000066
2025-04-27 08:21:07,159 - DEBUG - VN ctest-vn-04000066 UUID is 9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:07,686 - DEBUG - Response for create_network : {'network': {'id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'name': 'ctest-vn-28699146', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-28699146'], 'port_security_enabled': True, 'description': ''}}
2025-04-27 08:21:07,936 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d306570-b69e-4810-87cf-149b66ed50a1', 'name': '', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'network_id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'ip_version': 4, 'cidr': '86.137.191.192/26', 'allocation_pools': [{'start': '86.137.191.194', 'end': '86.137.191.254'}], 'gateway_ip': '86.137.191.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.137.191.194', 'tags': [], 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1'}}
2025-04-27 08:21:07,971 - INFO - Created VN ctest-vn-28699146
2025-04-27 08:21:08,040 - DEBUG - VN ctest-vn-28699146 UUID is 5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:08,238 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066, 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-10367648:ctest-vn-28699146, 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-04-27 08:21:08,747 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9050ab1a-9f23-4303-8a8e-a8c667212cb6', 'name': 'ctest-vn-04000066', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b913d602-c050-45e4-8bad-6971b7f47436'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-04000066'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']], 'subnet_ipam': [{'subnet_cidr': '168.94.153.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-27 08:21:09,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5e877021-592b-47e2-baaf-4fee6abdeba1', 'name': 'ctest-vn-28699146', 'tenant_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'project_id': '99ec7f4c0aed46ddbe188a04146a35c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d306570-b69e-4810-87cf-149b66ed50a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-vn-28699146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']], 'subnet_ipam': [{'subnet_cidr': '86.137.191.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-27 08:21:09,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 08:21:09,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 08:21:09,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d
2025-04-27 08:21:09,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1
2025-04-27 08:21:09,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:09,991 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:10,035 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d
2025-04-27 08:21:10,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d
2025-04-27 08:21:10,083 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4869bb1c-4d0a-4499-be74-087a825c8b46
2025-04-27 08:21:10,107 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-27 08:21:10,107 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:10,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d
2025-04-27 08:21:10,190 - INFO - Verified VN network id 7 for VN 9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:10,190 - INFO - Verifications in API Server for VN ctest-vn-04000066 passed
2025-04-27 08:21:10,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:10,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d
2025-04-27 08:21:10,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b8eed33e-56de-4725-afb3-87d767722d3d
2025-04-27 08:21:10,268 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4869bb1c-4d0a-4499-be74-087a825c8b46
2025-04-27 08:21:10,310 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10367648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10398999670425862915', 'uuid-lslong': '9984102994014186678'}, 'enable': 'true', 'created': '2025-04-27T08:21:06', 'last-modified': '2025-04-27T08:21:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.625370'}
2025-04-27 08:21:10,333 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-27 08:21:10,333 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04000066 passed
2025-04-27 08:21:10,334 - DEBUG - ====Verifying policy data for ctest-vn-04000066 in API_Server ======
2025-04-27 08:21:10,334 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 08:21:10,351 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d
2025-04-27 08:21:10,390 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1
2025-04-27 08:21:10,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/9050ab1a-9f23-4303-8a8e-a8c667212cb6
2025-04-27 08:21:10,570 - DEBUG - ==>Verifying data for policy with id: 6fb22988-093a-402c-8912-2e25afc245cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']
2025-04-27 08:21:10,570 - INFO - VN ctest-vn-04000066 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-27 08:21:10,571 - DEBUG - Verifying the vn in opserver
2025-04-27 08:21:10,571 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066 virtual network link through opserver 10.0.0.38
2025-04-27 08:21:10,571 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 08:21:10,937 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 08:21:11,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066?flat'}
2025-04-27 08:21:11,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-04000066 is found in opserver
2025-04-27 08:21:11,074 - DEBUG - Do not have enough data to verify VN in agent
2025-04-27 08:21:11,096 - DEBUG - VRF ids for VN ctest-vn-04000066: {}
2025-04-27 08:21:11,096 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 08:21:11,114 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d
2025-04-27 08:21:11,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1
2025-04-27 08:21:11,286 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,316 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,347 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa
2025-04-27 08:21:11,363 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa
2025-04-27 08:21:11,378 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dadb9f18-3f7a-4206-8b89-bcc3ffe07606
2025-04-27 08:21:11,393 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-27 08:21:11,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,420 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa
2025-04-27 08:21:11,458 - INFO - Verified VN network id 8 for VN 5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,458 - INFO - Verifications in API Server for VN ctest-vn-28699146 passed
2025-04-27 08:21:11,458 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,490 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa
2025-04-27 08:21:11,507 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/a953ba44-4a1e-431a-96ab-7cdd3a19e5fa
2025-04-27 08:21:11,525 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/dadb9f18-3f7a-4206-8b89-bcc3ffe07606
2025-04-27 08:21:11,561 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10367648', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6811536249953404898', 'uuid-lslong': '13452058497390603169'}, 'enable': 'true', 'created': '2025-04-27T08:21:07', 'last-modified': '2025-04-27T08:21:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.526709'}
2025-04-27 08:21:11,582 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-27 08:21:11,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28699146 passed
2025-04-27 08:21:11,583 - DEBUG - ====Verifying policy data for ctest-vn-28699146 in API_Server ======
2025-04-27 08:21:11,583 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-04-27 08:21:11,597 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b645547a-2150-4d50-b2ce-76036317157d
2025-04-27 08:21:11,625 - DEBUG - Requesting: http://10.0.0.38:8082/project/99ec7f4c-0aed-46dd-be18-8a04146a35c1
2025-04-27 08:21:11,752 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5e877021-592b-47e2-baaf-4fee6abdeba1
2025-04-27 08:21:11,778 - DEBUG - ==>Verifying data for policy with id: 6fb22988-093a-402c-8912-2e25afc245cc, fqn: ['default-domain', 'ctest-TestBasicPolicy-10367648', 'ctest-policy-allow-all-82309039']
2025-04-27 08:21:11,778 - INFO - VN ctest-vn-28699146 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-27 08:21:11,779 - DEBUG - Verifying the vn in opserver
2025-04-27 08:21:11,779 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146 virtual network link through opserver 10.0.0.38
2025-04-27 08:21:11,779 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-04-27 08:21:11,797 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146?flat'}
2025-04-27 08:21:11,797 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10367648:ctest-vn-28699146 is found in opserver
2025-04-27 08:21:11,819 - DEBUG - Do not have enough data to verify VN in agent
2025-04-27 08:21:11,832 - DEBUG - VRF ids for VN ctest-vn-28699146: {}
2025-04-27 08:21:11,963 - DEBUG - Services list from nova: [