2025-04-08 14:18:41,838 - INFO - Domain Default found not creating
2025-04-08 14:18:41,994 - INFO - Project ctest-TestBasicPolicy-91290993 not found, creating it
2025-04-08 14:18:42,456 - INFO - Created Project:ctest-TestBasicPolicy-91290993, ID : e7ee4e28-82f9-4085-8264-981e87d7efcb
2025-04-08 14:18:43,934 - INFO - ================================================================================
2025-04-08 14:18:43,934 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-08 14:18:43,934 - 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-08 14:18:44,188 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.18': '0'}} with
2025-04-08 14:18:44,188 - INFO - Initial checks done. Running the testcase now
2025-04-08 14:18:44,188 - INFO -
2025-04-08 14:18:44,750 - DEBUG - Response for create_network : {'network': {'id': '21feae77-6e03-469b-8d4f-adf567ae696b', 'name': 'ctest-vn-87852813', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'project_id': 'e7ee4e2882f940858264981e87d7efcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-vn-87852813'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:18:44,943 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcfc7811-8629-48fd-8cb4-d97b1c35a670', 'name': '', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'network_id': '21feae77-6e03-469b-8d4f-adf567ae696b', 'ip_version': 4, 'cidr': '14.168.209.64/26', 'allocation_pools': [{'start': '14.168.209.66', 'end': '14.168.209.126'}], 'gateway_ip': '14.168.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.168.209.66', 'tags': [], 'project_id': 'e7ee4e2882f940858264981e87d7efcb'}}
2025-04-08 14:18:44,963 - INFO - Created VN ctest-vn-87852813
2025-04-08 14:18:45,018 - DEBUG - VN ctest-vn-87852813 UUID is 21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:45,329 - DEBUG - Response for create_network : {'network': {'id': '570b8a28-51c9-4a49-8bfd-2b2f6b76030b', 'name': 'ctest-vn-44952289', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'project_id': 'e7ee4e2882f940858264981e87d7efcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-vn-44952289'], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:18:45,541 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bff62d1-503b-4968-a88c-4174a2fa0eda', 'name': '', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'network_id': '570b8a28-51c9-4a49-8bfd-2b2f6b76030b', 'ip_version': 4, 'cidr': '175.108.222.192/26', 'allocation_pools': [{'start': '175.108.222.194', 'end': '175.108.222.254'}], 'gateway_ip': '175.108.222.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.108.222.194', 'tags': [], 'project_id': 'e7ee4e2882f940858264981e87d7efcb'}}
2025-04-08 14:18:45,561 - INFO - Created VN ctest-vn-44952289
2025-04-08 14:18:45,614 - DEBUG - VN ctest-vn-44952289 UUID is 570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:45,731 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813, 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-91290993:ctest-vn-44952289, 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-08 14:18:46,038 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21feae77-6e03-469b-8d4f-adf567ae696b', 'name': 'ctest-vn-87852813', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'project_id': 'e7ee4e2882f940858264981e87d7efcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcfc7811-8629-48fd-8cb4-d97b1c35a670'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-vn-87852813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-policy-allow-all-84369966']], 'subnet_ipam': [{'subnet_cidr': '14.168.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:18:46,273 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '570b8a28-51c9-4a49-8bfd-2b2f6b76030b', 'name': 'ctest-vn-44952289', 'tenant_id': 'e7ee4e2882f940858264981e87d7efcb', 'project_id': 'e7ee4e2882f940858264981e87d7efcb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bff62d1-503b-4968-a88c-4174a2fa0eda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-vn-44952289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-policy-allow-all-84369966']], 'subnet_ipam': [{'subnet_cidr': '175.108.222.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-08 14:18:46,418 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-08 14:18:46,725 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-08 14:18:46,761 - DEBUG - Requesting: http://10.0.0.24:8082/domain/93f3ea46-34ad-47d8-aeea-c2b4e3e1152f
2025-04-08 14:18:46,776 - DEBUG - Requesting: http://10.0.0.24:8082/project/e7ee4e28-82f9-4085-8264-981e87d7efcb
2025-04-08 14:18:46,850 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:46,862 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:46,873 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b469d561-7f71-4c06-91ec-e6ccfab9d365
2025-04-08 14:18:46,881 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b469d561-7f71-4c06-91ec-e6ccfab9d365
2025-04-08 14:18:46,889 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/af073ee9-5ea2-4efa-aa90-214d6637ec5d
2025-04-08 14:18:46,898 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 14:18:46,898 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:46,909 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b469d561-7f71-4c06-91ec-e6ccfab9d365
2025-04-08 14:18:46,927 - INFO - Verified VN network id 8 for VN 21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:46,927 - INFO - Verifications in API Server for VN ctest-vn-87852813 passed
2025-04-08 14:18:46,927 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:46,938 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b469d561-7f71-4c06-91ec-e6ccfab9d365
2025-04-08 14:18:46,946 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b469d561-7f71-4c06-91ec-e6ccfab9d365
2025-04-08 14:18:46,956 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/af073ee9-5ea2-4efa-aa90-214d6637ec5d
2025-04-08 14:18:46,972 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91290993', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2449587075306178203', 'uuid-lslong': '10182548552026057067'}, 'enable': 'true', 'created': '2025-04-08T14:18:44', 'last-modified': '2025-04-08T14:18:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.958489'}
2025-04-08 14:18:46,979 - DEBUG - Route Targets: ['target:64512:8000004']
2025-04-08 14:18:46,979 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-87852813 passed
2025-04-08 14:18:46,979 - DEBUG - ====Verifying policy data for ctest-vn-87852813 in API_Server ======
2025-04-08 14:18:46,979 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-08 14:18:46,986 - DEBUG - Requesting: http://10.0.0.24:8082/domain/93f3ea46-34ad-47d8-aeea-c2b4e3e1152f
2025-04-08 14:18:46,999 - DEBUG - Requesting: http://10.0.0.24:8082/project/e7ee4e28-82f9-4085-8264-981e87d7efcb
2025-04-08 14:18:47,071 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/21feae77-6e03-469b-8d4f-adf567ae696b
2025-04-08 14:18:47,084 - DEBUG - ==>Verifying data for policy with id: 6dd34562-20c2-40b5-a400-d19f24dc6c36, fqn: ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-policy-allow-all-84369966']
2025-04-08 14:18:47,084 - INFO - VN ctest-vn-87852813 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 14:18:47,084 - DEBUG - Verifying the vn in opserver
2025-04-08 14:18:47,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813 virtual network link through opserver 10.0.0.24
2025-04-08 14:18:47,084 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-08 14:18:47,382 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-08 14:18:47,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813?flat'}
2025-04-08 14:18:47,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-87852813 is found in opserver
2025-04-08 14:18:47,463 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 14:18:47,469 - DEBUG - VRF ids for VN ctest-vn-87852813: {}
2025-04-08 14:18:47,469 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-08 14:18:47,475 - DEBUG - Requesting: http://10.0.0.24:8082/domain/93f3ea46-34ad-47d8-aeea-c2b4e3e1152f
2025-04-08 14:18:47,488 - DEBUG - Requesting: http://10.0.0.24:8082/project/e7ee4e28-82f9-4085-8264-981e87d7efcb
2025-04-08 14:18:47,567 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,580 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,593 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b4c5fd7d-0448-4248-acc5-fcfe83a477c0
2025-04-08 14:18:47,604 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b4c5fd7d-0448-4248-acc5-fcfe83a477c0
2025-04-08 14:18:47,615 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/7916d31a-3bcc-4ef7-ac6d-26cd45fcbf5d
2025-04-08 14:18:47,622 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 14:18:47,622 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,633 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b4c5fd7d-0448-4248-acc5-fcfe83a477c0
2025-04-08 14:18:47,649 - INFO - Verified VN network id 9 for VN 570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,649 - INFO - Verifications in API Server for VN ctest-vn-44952289 passed
2025-04-08 14:18:47,650 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,661 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b4c5fd7d-0448-4248-acc5-fcfe83a477c0
2025-04-08 14:18:47,669 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/b4c5fd7d-0448-4248-acc5-fcfe83a477c0
2025-04-08 14:18:47,677 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/7916d31a-3bcc-4ef7-ac6d-26cd45fcbf5d
2025-04-08 14:18:47,690 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-44952289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91290993', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6272258811819018825', 'uuid-lslong': '10087266223046132491'}, 'enable': 'true', 'created': '2025-04-08T14:18:45', 'last-modified': '2025-04-08T14:18:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441829'}
2025-04-08 14:18:47,699 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-08 14:18:47,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44952289 passed
2025-04-08 14:18:47,700 - DEBUG - ====Verifying policy data for ctest-vn-44952289 in API_Server ======
2025-04-08 14:18:47,700 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2025-04-08 14:18:47,707 - DEBUG - Requesting: http://10.0.0.24:8082/domain/93f3ea46-34ad-47d8-aeea-c2b4e3e1152f
2025-04-08 14:18:47,724 - DEBUG - Requesting: http://10.0.0.24:8082/project/e7ee4e28-82f9-4085-8264-981e87d7efcb
2025-04-08 14:18:47,800 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/570b8a28-51c9-4a49-8bfd-2b2f6b76030b
2025-04-08 14:18:47,812 - DEBUG - ==>Verifying data for policy with id: 6dd34562-20c2-40b5-a400-d19f24dc6c36, fqn: ['default-domain', 'ctest-TestBasicPolicy-91290993', 'ctest-policy-allow-all-84369966']
2025-04-08 14:18:47,813 - INFO - VN ctest-vn-44952289 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-08 14:18:47,813 - DEBUG - Verifying the vn in opserver
2025-04-08 14:18:47,813 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-44952289 virtual network link through opserver 10.0.0.24
2025-04-08 14:18:47,813 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2025-04-08 14:18:47,825 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-44952289', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-44952289?flat'}
2025-04-08 14:18:47,826 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91290993:ctest-vn-44952289 is found in opserver
2025-04-08 14:18:47,838 - DEBUG - Do not have enough data to verify VN in agent
2025-04-08 14:18:47,844 - DEBUG - VRF ids for VN ctest-vn-44952289: {}
2025-04-08 14:18:47,905 - DEBUG - Services list from nova: [