2025-01-09 00:06:16,974 - INFO - Domain Default found not creating
2025-01-09 00:06:17,140 - INFO - Project ctest-TestBasicPolicy-54982636 not found, creating it
2025-01-09 00:06:17,630 - INFO - Created Project:ctest-TestBasicPolicy-54982636, ID : d2253a6d-2e18-4f95-b39d-4eb3df7be700
2025-01-09 00:06:19,404 - INFO - ================================================================================
2025-01-09 00:06:19,405 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-09 00:06:19,405 - 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 00:06:19,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.22': '0'}} with
2025-01-09 00:06:19,669 - INFO - Initial checks done. Running the testcase now
2025-01-09 00:06:19,669 - INFO -
2025-01-09 00:06:20,332 - DEBUG - Response for create_network : {'network': {'id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'name': 'ctest-vn-54541194', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-54541194'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 00:06:20,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '2173f9ef-fbe3-4fb8-8a93-e9c8c0f50d66', 'name': '', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'network_id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'ip_version': 4, 'cidr': '109.218.164.128/26', 'allocation_pools': [{'start': '109.218.164.130', 'end': '109.218.164.190'}], 'gateway_ip': '109.218.164.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.218.164.130', 'tags': [], 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700'}}
2025-01-09 00:06:20,564 - INFO - Created VN ctest-vn-54541194
2025-01-09 00:06:20,621 - DEBUG - VN ctest-vn-54541194 UUID is 37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:21,125 - DEBUG - Response for create_network : {'network': {'id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'name': 'ctest-vn-99720562', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-99720562'], 'port_security_enabled': True, 'description': ''}}
2025-01-09 00:06:21,308 - DEBUG - Response for create_subnet : {'subnet': {'id': '26903e6f-c501-4ede-9c27-58766e8b6cca', 'name': '', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'network_id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'ip_version': 4, 'cidr': '203.46.9.192/26', 'allocation_pools': [{'start': '203.46.9.194', 'end': '203.46.9.254'}], 'gateway_ip': '203.46.9.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.46.9.194', 'tags': [], 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700'}}
2025-01-09 00:06:21,333 - INFO - Created VN ctest-vn-99720562
2025-01-09 00:06:21,389 - DEBUG - VN ctest-vn-99720562 UUID is ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:21,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194, 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-54982636:ctest-vn-99720562, 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 00:06:21,836 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37d0946c-4960-4c09-b1e3-15d0d7d688e8', 'name': 'ctest-vn-54541194', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2173f9ef-fbe3-4fb8-8a93-e9c8c0f50d66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-54541194'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']], 'subnet_ipam': [{'subnet_cidr': '109.218.164.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 00:06:22,108 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffbdc5e8-3440-45f6-80c9-8b9093c44e87', 'name': 'ctest-vn-99720562', 'tenant_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'project_id': 'd2253a6d2e184f95b39d4eb3df7be700', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['26903e6f-c501-4ede-9c27-58766e8b6cca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-vn-99720562'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']], 'subnet_ipam': [{'subnet_cidr': '203.46.9.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-09 00:06:22,261 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-09 00:06:22,581 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-09 00:06:22,612 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e
2025-01-09 00:06:22,627 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700
2025-01-09 00:06:22,706 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,719 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,732 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d
2025-01-09 00:06:22,742 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d
2025-01-09 00:06:22,752 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/50274e8f-ae64-4945-99f0-667322d6cf4f
2025-01-09 00:06:22,761 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 00:06:22,762 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,773 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d
2025-01-09 00:06:22,790 - INFO - Verified VN network id 9 for VN 37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,791 - INFO - Verifications in API Server for VN ctest-vn-54541194 passed
2025-01-09 00:06:22,791 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,805 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d
2025-01-09 00:06:22,813 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/be8a3794-a07b-4a14-8fc8-e0d62957331d
2025-01-09 00:06:22,821 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/50274e8f-ae64-4945-99f0-667322d6cf4f
2025-01-09 00:06:22,835 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54982636', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4021877660050279433', 'uuid-lslong': '12818112951145105640'}, 'enable': 'true', 'created': '2025-01-09T00:06:20', 'last-modified': '2025-01-09T00:06:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.026991'}
2025-01-09 00:06:22,842 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-09 00:06:22,842 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54541194 passed
2025-01-09 00:06:22,842 - DEBUG - ====Verifying policy data for ctest-vn-54541194 in API_Server ======
2025-01-09 00:06:22,842 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-09 00:06:22,851 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e
2025-01-09 00:06:22,865 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700
2025-01-09 00:06:22,942 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37d0946c-4960-4c09-b1e3-15d0d7d688e8
2025-01-09 00:06:22,955 - DEBUG - ==>Verifying data for policy with id: 6dfcbf95-eb92-4461-b3b9-cb82d240384b, fqn: ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']
2025-01-09 00:06:22,955 - INFO - VN ctest-vn-54541194 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 00:06:22,955 - DEBUG - Verifying the vn in opserver
2025-01-09 00:06:22,955 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194 virtual network link through opserver 10.0.0.27
2025-01-09 00:06:22,955 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-09 00:06:23,256 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-09 00:06:23,625 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194?flat'}
2025-01-09 00:06:23,625 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-54541194 is found in opserver
2025-01-09 00:06:23,638 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 00:06:23,644 - DEBUG - VRF ids for VN ctest-vn-54541194: {}
2025-01-09 00:06:23,645 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-09 00:06:23,655 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e
2025-01-09 00:06:23,670 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700
2025-01-09 00:06:23,760 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:23,776 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:23,788 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657
2025-01-09 00:06:23,798 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657
2025-01-09 00:06:23,807 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5445ba3c-1ad2-405d-beff-b3c4f4cb5c96
2025-01-09 00:06:23,816 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 00:06:23,816 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:23,827 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657
2025-01-09 00:06:23,845 - INFO - Verified VN network id 10 for VN ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:23,845 - INFO - Verifications in API Server for VN ctest-vn-99720562 passed
2025-01-09 00:06:23,845 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:23,859 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657
2025-01-09 00:06:23,870 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5fcf6e1e-6404-47ea-91b5-083ceae9f657
2025-01-09 00:06:23,879 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5445ba3c-1ad2-405d-beff-b3c4f4cb5c96
2025-01-09 00:06:23,894 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54982636', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18428102851369649654', 'uuid-lslong': '9280101960244285063'}, 'enable': 'true', 'created': '2025-01-09T00:06:21', 'last-modified': '2025-01-09T00:06:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.820297'}
2025-01-09 00:06:23,903 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-09 00:06:23,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99720562 passed
2025-01-09 00:06:23,903 - DEBUG - ====Verifying policy data for ctest-vn-99720562 in API_Server ======
2025-01-09 00:06:23,903 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-01-09 00:06:23,910 - DEBUG - Requesting: http://10.0.0.27:8082/domain/0922b48b-a430-46f1-8cee-a20a8117155e
2025-01-09 00:06:23,924 - DEBUG - Requesting: http://10.0.0.27:8082/project/d2253a6d-2e18-4f95-b39d-4eb3df7be700
2025-01-09 00:06:24,009 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ffbdc5e8-3440-45f6-80c9-8b9093c44e87
2025-01-09 00:06:24,022 - DEBUG - ==>Verifying data for policy with id: 6dfcbf95-eb92-4461-b3b9-cb82d240384b, fqn: ['default-domain', 'ctest-TestBasicPolicy-54982636', 'ctest-policy-allow-all-86210153']
2025-01-09 00:06:24,022 - INFO - VN ctest-vn-99720562 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-09 00:06:24,023 - DEBUG - Verifying the vn in opserver
2025-01-09 00:06:24,023 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562 virtual network link through opserver 10.0.0.27
2025-01-09 00:06:24,023 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-01-09 00:06:24,075 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562?flat'}
2025-01-09 00:06:24,075 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54982636:ctest-vn-99720562 is found in opserver
2025-01-09 00:06:24,091 - DEBUG - Do not have enough data to verify VN in agent
2025-01-09 00:06:24,096 - DEBUG - VRF ids for VN ctest-vn-99720562: {}
2025-01-09 00:06:24,166 - DEBUG - Services list from nova: [