2025-01-02 22:30:25,379 - INFO - Domain Default found not creating
2025-01-02 22:30:25,534 - INFO - Project ctest-TestBasicPolicy-10910359 not found, creating it
2025-01-02 22:30:25,986 - INFO - Created Project:ctest-TestBasicPolicy-10910359, ID : 4fda94e2-b440-4730-8a3f-9b9e3469a3df
2025-01-02 22:30:27,458 - INFO - ================================================================================
2025-01-02 22:30:27,459 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-02 22:30:27,459 - 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 22:30:27,714 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.18': '0'}} with
2025-01-02 22:30:27,714 - INFO - Initial checks done. Running the testcase now
2025-01-02 22:30:27,714 - INFO -
2025-01-02 22:30:28,245 - DEBUG - Response for create_network : {'network': {'id': '28b156b9-e173-4b89-bd53-13dff05c347d', 'name': 'ctest-vn-03355638', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'project_id': '4fda94e2b44047308a3f9b9e3469a3df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-vn-03355638'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:30:28,432 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6fcde62-a640-4a95-91cb-94a0d5f6684b', 'name': '', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'network_id': '28b156b9-e173-4b89-bd53-13dff05c347d', 'ip_version': 4, 'cidr': '118.111.0.128/26', 'allocation_pools': [{'start': '118.111.0.130', 'end': '118.111.0.190'}], 'gateway_ip': '118.111.0.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.111.0.130', 'tags': [], 'project_id': '4fda94e2b44047308a3f9b9e3469a3df'}}
2025-01-02 22:30:28,455 - INFO - Created VN ctest-vn-03355638
2025-01-02 22:30:28,512 - DEBUG - VN ctest-vn-03355638 UUID is 28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:28,818 - DEBUG - Response for create_network : {'network': {'id': '9d23ba40-11fa-4d9d-9bfc-296047aa0088', 'name': 'ctest-vn-53584706', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'project_id': '4fda94e2b44047308a3f9b9e3469a3df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-vn-53584706'], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:30:29,061 - DEBUG - Response for create_subnet : {'subnet': {'id': '8beac6ae-1df0-446c-b523-63a1a3402413', 'name': '', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'network_id': '9d23ba40-11fa-4d9d-9bfc-296047aa0088', 'ip_version': 4, 'cidr': '31.96.223.64/26', 'allocation_pools': [{'start': '31.96.223.66', 'end': '31.96.223.126'}], 'gateway_ip': '31.96.223.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.96.223.66', 'tags': [], 'project_id': '4fda94e2b44047308a3f9b9e3469a3df'}}
2025-01-02 22:30:29,082 - INFO - Created VN ctest-vn-53584706
2025-01-02 22:30:29,136 - DEBUG - VN ctest-vn-53584706 UUID is 9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:29,254 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638, 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-10910359:ctest-vn-53584706, 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 22:30:29,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '28b156b9-e173-4b89-bd53-13dff05c347d', 'name': 'ctest-vn-03355638', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'project_id': '4fda94e2b44047308a3f9b9e3469a3df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6fcde62-a640-4a95-91cb-94a0d5f6684b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-vn-03355638'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-policy-allow-all-08412459']], 'subnet_ipam': [{'subnet_cidr': '118.111.0.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:30:29,866 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d23ba40-11fa-4d9d-9bfc-296047aa0088', 'name': 'ctest-vn-53584706', 'tenant_id': '4fda94e2b44047308a3f9b9e3469a3df', 'project_id': '4fda94e2b44047308a3f9b9e3469a3df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8beac6ae-1df0-446c-b523-63a1a3402413'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-vn-53584706'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-policy-allow-all-08412459']], 'subnet_ipam': [{'subnet_cidr': '31.96.223.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-02 22:30:30,016 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-02 22:30:30,316 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-02 22:30:30,347 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c95bbdbb-3e0f-403a-ac05-8cb377cdced0
2025-01-02 22:30:30,360 - DEBUG - Requesting: http://10.0.0.30:8082/project/4fda94e2-b440-4730-8a3f-9b9e3469a3df
2025-01-02 22:30:30,437 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,448 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,458 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/bbfa0f30-25e1-41dd-8eda-35780b1529dd
2025-01-02 22:30:30,466 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/bbfa0f30-25e1-41dd-8eda-35780b1529dd
2025-01-02 22:30:30,475 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f63f0498-5b6c-4dbe-9c8f-4efba9eb3ee1
2025-01-02 22:30:30,481 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 22:30:30,481 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,490 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/bbfa0f30-25e1-41dd-8eda-35780b1529dd
2025-01-02 22:30:30,507 - INFO - Verified VN network id 8 for VN 28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,507 - INFO - Verifications in API Server for VN ctest-vn-03355638 passed
2025-01-02 22:30:30,507 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,518 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/bbfa0f30-25e1-41dd-8eda-35780b1529dd
2025-01-02 22:30:30,525 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/bbfa0f30-25e1-41dd-8eda-35780b1529dd
2025-01-02 22:30:30,533 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/f63f0498-5b6c-4dbe-9c8f-4efba9eb3ee1
2025-01-02 22:30:30,545 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10910359', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2932220188746271625', 'uuid-lslong': '13642269548766573693'}, 'enable': 'true', 'created': '2025-01-02T22:30:28', 'last-modified': '2025-01-02T22:30:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.986513'}
2025-01-02 22:30:30,551 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-02 22:30:30,551 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03355638 passed
2025-01-02 22:30:30,551 - DEBUG - ====Verifying policy data for ctest-vn-03355638 in API_Server ======
2025-01-02 22:30:30,551 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-02 22:30:30,557 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c95bbdbb-3e0f-403a-ac05-8cb377cdced0
2025-01-02 22:30:30,568 - DEBUG - Requesting: http://10.0.0.30:8082/project/4fda94e2-b440-4730-8a3f-9b9e3469a3df
2025-01-02 22:30:30,664 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/28b156b9-e173-4b89-bd53-13dff05c347d
2025-01-02 22:30:30,674 - DEBUG - ==>Verifying data for policy with id: facaaaf3-d356-404d-950d-b2e14a27728d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-policy-allow-all-08412459']
2025-01-02 22:30:30,674 - INFO - VN ctest-vn-03355638 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 22:30:30,674 - DEBUG - Verifying the vn in opserver
2025-01-02 22:30:30,674 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638 virtual network link through opserver 10.0.0.30
2025-01-02 22:30:30,674 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-02 22:30:30,966 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-02 22:30:31,023 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638?flat'}
2025-01-02 22:30:31,023 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-03355638 is found in opserver
2025-01-02 22:30:31,034 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 22:30:31,039 - DEBUG - VRF ids for VN ctest-vn-03355638: {}
2025-01-02 22:30:31,039 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-02 22:30:31,044 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c95bbdbb-3e0f-403a-ac05-8cb377cdced0
2025-01-02 22:30:31,055 - DEBUG - Requesting: http://10.0.0.30:8082/project/4fda94e2-b440-4730-8a3f-9b9e3469a3df
2025-01-02 22:30:31,127 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,139 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,148 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/422b5d28-a7b9-4fe4-bae9-5be060d7138b
2025-01-02 22:30:31,156 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/422b5d28-a7b9-4fe4-bae9-5be060d7138b
2025-01-02 22:30:31,162 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/998e582a-f904-461f-a7c0-378b47e5d126
2025-01-02 22:30:31,169 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 22:30:31,169 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,178 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/422b5d28-a7b9-4fe4-bae9-5be060d7138b
2025-01-02 22:30:31,191 - INFO - Verified VN network id 9 for VN 9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,192 - INFO - Verifications in API Server for VN ctest-vn-53584706 passed
2025-01-02 22:30:31,192 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,202 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/422b5d28-a7b9-4fe4-bae9-5be060d7138b
2025-01-02 22:30:31,210 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/422b5d28-a7b9-4fe4-bae9-5be060d7138b
2025-01-02 22:30:31,218 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/998e582a-f904-461f-a7c0-378b47e5d126
2025-01-02 22:30:31,230 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-53584706', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10910359', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11323098672481848733', 'uuid-lslong': '11239904263505838216'}, 'enable': 'true', 'created': '2025-01-02T22:30:28', 'last-modified': '2025-01-02T22:30:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.435999'}
2025-01-02 22:30:31,237 - DEBUG - Route Targets: ['target:64512:8000006']
2025-01-02 22:30:31,237 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53584706 passed
2025-01-02 22:30:31,237 - DEBUG - ====Verifying policy data for ctest-vn-53584706 in API_Server ======
2025-01-02 22:30:31,238 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2025-01-02 22:30:31,244 - DEBUG - Requesting: http://10.0.0.30:8082/domain/c95bbdbb-3e0f-403a-ac05-8cb377cdced0
2025-01-02 22:30:31,255 - DEBUG - Requesting: http://10.0.0.30:8082/project/4fda94e2-b440-4730-8a3f-9b9e3469a3df
2025-01-02 22:30:31,329 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/9d23ba40-11fa-4d9d-9bfc-296047aa0088
2025-01-02 22:30:31,341 - DEBUG - ==>Verifying data for policy with id: facaaaf3-d356-404d-950d-b2e14a27728d, fqn: ['default-domain', 'ctest-TestBasicPolicy-10910359', 'ctest-policy-allow-all-08412459']
2025-01-02 22:30:31,341 - INFO - VN ctest-vn-53584706 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-02 22:30:31,341 - DEBUG - Verifying the vn in opserver
2025-01-02 22:30:31,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-53584706 virtual network link through opserver 10.0.0.30
2025-01-02 22:30:31,341 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2025-01-02 22:30:31,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-53584706', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-53584706?flat'}
2025-01-02 22:30:31,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10910359:ctest-vn-53584706 is found in opserver
2025-01-02 22:30:31,366 - DEBUG - Do not have enough data to verify VN in agent
2025-01-02 22:30:31,372 - DEBUG - VRF ids for VN ctest-vn-53584706: {}
2025-01-02 22:30:31,425 - DEBUG - Services list from nova: [