2025-01-09 11:44:32,430 - INFO - Domain Default found not creating
2025-01-09 11:44:32,612 - INFO - Project ctest-TestBasicPolicy-67384402 not found, creating it
2025-01-09 11:44:33,096 - INFO - Created Project:ctest-TestBasicPolicy-67384402, ID : 7956c9bf-bd91-4e81-9af9-efc600022e4f
2025-01-09 11:44:34,702 - INFO - ================================================================================
2025-01-09 11:44:34,703 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 11:44:34,703 - 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-09 11:44:34,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.6': '0'}} with
2025-01-09 11:44:34,963 - INFO - Initial checks done. Running the testcase now
2025-01-09 11:44:34,963 - INFO -
2025-01-09 11:44:35,565 - DEBUG - Response for create_network : {'network': {'id': '6f1bc32e-791d-4e3a-adf1-52ddd63035dc', 'name': 'ctest-vn-14659113', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'project_id': '7956c9bfbd914e819af9efc600022e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-vn-14659113'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:44:35,725 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec5a23fc-6d32-4e85-8cfe-959964420a7e', 'name': '', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'network_id': '6f1bc32e-791d-4e3a-adf1-52ddd63035dc', 'ip_version': 4, 'cidr': '55.154.219.192/26', 'allocation_pools': [{'start': '55.154.219.194', 'end': '55.154.219.254'}], 'gateway_ip': '55.154.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.154.219.194', 'tags': [], 'project_id': '7956c9bfbd914e819af9efc600022e4f'}}
2025-01-09 11:44:35,745 - INFO - Created VN ctest-vn-14659113
2025-01-09 11:44:35,800 - DEBUG - VN ctest-vn-14659113 UUID is 6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:36,104 - DEBUG - Response for create_network : {'network': {'id': 'ab674f5d-f302-4c98-8317-bbb0f532fc7a', 'name': 'ctest-vn-67742673', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'project_id': '7956c9bfbd914e819af9efc600022e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-vn-67742673'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:44:36,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6b1772e-91bd-4aee-8a9e-0557d49031dd', 'name': '', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'network_id': 'ab674f5d-f302-4c98-8317-bbb0f532fc7a', 'ip_version': 4, 'cidr': '90.191.211.0/26', 'allocation_pools': [{'start': '90.191.211.2', 'end': '90.191.211.62'}], 'gateway_ip': '90.191.211.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.191.211.2', 'tags': [], 'project_id': '7956c9bfbd914e819af9efc600022e4f'}}
2025-01-09 11:44:36,332 - INFO - Created VN ctest-vn-67742673
2025-01-09 11:44:36,388 - DEBUG - VN ctest-vn-67742673 UUID is ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:36,506 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113, 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-67384402:ctest-vn-67742673, 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-09 11:44:36,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f1bc32e-791d-4e3a-adf1-52ddd63035dc', 'name': 'ctest-vn-14659113', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'project_id': '7956c9bfbd914e819af9efc600022e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec5a23fc-6d32-4e85-8cfe-959964420a7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-vn-14659113'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-policy-allow-all-04047262']], 'subnet_ipam': [{'subnet_cidr': '55.154.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:44:37,074 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab674f5d-f302-4c98-8317-bbb0f532fc7a', 'name': 'ctest-vn-67742673', 'tenant_id': '7956c9bfbd914e819af9efc600022e4f', 'project_id': '7956c9bfbd914e819af9efc600022e4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6b1772e-91bd-4aee-8a9e-0557d49031dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-vn-67742673'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-policy-allow-all-04047262']], 'subnet_ipam': [{'subnet_cidr': '90.191.211.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 11:44:37,244 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-09 11:44:37,543 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-09 11:44:37,574 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1860da5e-b648-43ec-b814-9adc4a43eb5b
2025-01-09 11:44:37,592 - DEBUG - Requesting: http://10.0.0.45:8082/project/7956c9bf-bd91-4e81-9af9-efc600022e4f
2025-01-09 11:44:37,677 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,689 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,700 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/643e992f-1007-4273-906c-beaffe51c10f
2025-01-09 11:44:37,709 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/643e992f-1007-4273-906c-beaffe51c10f
2025-01-09 11:44:37,719 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/a4101f15-1b8a-4c3b-8f1a-25e2dfe1b103
2025-01-09 11:44:37,727 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 11:44:37,727 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,738 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/643e992f-1007-4273-906c-beaffe51c10f
2025-01-09 11:44:37,756 - INFO - Verified VN network id 8 for VN 6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,756 - INFO - Verifications in API Server for VN ctest-vn-14659113 passed
2025-01-09 11:44:37,756 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,771 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/643e992f-1007-4273-906c-beaffe51c10f
2025-01-09 11:44:37,779 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/643e992f-1007-4273-906c-beaffe51c10f
2025-01-09 11:44:37,788 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/a4101f15-1b8a-4c3b-8f1a-25e2dfe1b103
2025-01-09 11:44:37,802 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67384402', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8006207366949064250', 'uuid-lslong': '12533890350683534812'}, 'enable': 'true', 'created': '2025-01-09T11:44:35', 'last-modified': '2025-01-09T11:44:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.000596'}
2025-01-09 11:44:37,809 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 11:44:37,809 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14659113 passed
2025-01-09 11:44:37,809 - DEBUG - ====Verifying policy data for ctest-vn-14659113 in API_Server ======
2025-01-09 11:44:37,809 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-09 11:44:37,816 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1860da5e-b648-43ec-b814-9adc4a43eb5b
2025-01-09 11:44:37,829 - DEBUG - Requesting: http://10.0.0.45:8082/project/7956c9bf-bd91-4e81-9af9-efc600022e4f
2025-01-09 11:44:37,910 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/6f1bc32e-791d-4e3a-adf1-52ddd63035dc
2025-01-09 11:44:37,920 - DEBUG - ==>Verifying data for policy with id: bda8eb9c-53fc-4f88-9b64-360158622be2, fqn: ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-policy-allow-all-04047262']
2025-01-09 11:44:37,920 - INFO - VN ctest-vn-14659113 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 11:44:37,920 - DEBUG - Verifying the vn in opserver
2025-01-09 11:44:37,920 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113 virtual network link through opserver 10.0.0.45
2025-01-09 11:44:37,920 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-09 11:44:38,219 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-09 11:44:38,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113?flat'}
2025-01-09 11:44:38,286 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-14659113 is found in opserver
2025-01-09 11:44:38,298 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 11:44:38,304 - DEBUG - VRF ids for VN ctest-vn-14659113: {}
2025-01-09 11:44:38,304 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-09 11:44:38,310 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1860da5e-b648-43ec-b814-9adc4a43eb5b
2025-01-09 11:44:38,326 - DEBUG - Requesting: http://10.0.0.45:8082/project/7956c9bf-bd91-4e81-9af9-efc600022e4f
2025-01-09 11:44:38,405 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,420 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,432 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/300c676b-4adb-46bf-b848-7cd25d93210d
2025-01-09 11:44:38,440 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/300c676b-4adb-46bf-b848-7cd25d93210d
2025-01-09 11:44:38,448 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/e0c17abf-d632-4d6c-bb74-c550b57cd118
2025-01-09 11:44:38,456 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 11:44:38,456 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,466 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/300c676b-4adb-46bf-b848-7cd25d93210d
2025-01-09 11:44:38,482 - INFO - Verified VN network id 9 for VN ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,483 - INFO - Verifications in API Server for VN ctest-vn-67742673 passed
2025-01-09 11:44:38,483 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,495 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/300c676b-4adb-46bf-b848-7cd25d93210d
2025-01-09 11:44:38,503 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/300c676b-4adb-46bf-b848-7cd25d93210d
2025-01-09 11:44:38,511 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/e0c17abf-d632-4d6c-bb74-c550b57cd118
2025-01-09 11:44:38,526 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-67742673', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67384402', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12350927768014441624', 'uuid-lslong': '9446225112135302266'}, 'enable': 'true', 'created': '2025-01-09T11:44:36', 'last-modified': '2025-01-09T11:44:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.481890'}
2025-01-09 11:44:38,533 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 11:44:38,533 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67742673 passed
2025-01-09 11:44:38,534 - DEBUG - ====Verifying policy data for ctest-vn-67742673 in API_Server ======
2025-01-09 11:44:38,534 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-01-09 11:44:38,540 - DEBUG - Requesting: http://10.0.0.45:8082/domain/1860da5e-b648-43ec-b814-9adc4a43eb5b
2025-01-09 11:44:38,554 - DEBUG - Requesting: http://10.0.0.45:8082/project/7956c9bf-bd91-4e81-9af9-efc600022e4f
2025-01-09 11:44:38,628 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/ab674f5d-f302-4c98-8317-bbb0f532fc7a
2025-01-09 11:44:38,638 - DEBUG - ==>Verifying data for policy with id: bda8eb9c-53fc-4f88-9b64-360158622be2, fqn: ['default-domain', 'ctest-TestBasicPolicy-67384402', 'ctest-policy-allow-all-04047262']
2025-01-09 11:44:38,638 - INFO - VN ctest-vn-67742673 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 11:44:38,638 - DEBUG - Verifying the vn in opserver
2025-01-09 11:44:38,638 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-67742673 virtual network link through opserver 10.0.0.45
2025-01-09 11:44:38,638 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-01-09 11:44:38,651 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-67742673', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-67742673?flat'}
2025-01-09 11:44:38,651 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67384402:ctest-vn-67742673 is found in opserver
2025-01-09 11:44:38,663 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 11:44:38,669 - DEBUG - VRF ids for VN ctest-vn-67742673: {}
2025-01-09 11:44:38,735 - DEBUG - Services list from nova: [