2024-09-11 09:54:06,649 - INFO - Domain Default found not creating
2024-09-11 09:54:06,804 - INFO - Project ctest-TestBasicPolicy-45005617 not found, creating it
2024-09-11 09:54:07,250 - INFO - Created Project:ctest-TestBasicPolicy-45005617, ID : 97c4abb0-c596-4021-b520-2a32b258d6cf
2024-09-11 09:54:08,751 - INFO - ================================================================================
2024-09-11 09:54:08,751 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 09:54:08,751 - 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
2024-09-11 09:54:09,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.53': {'10.20.0.6': '0'}} with
2024-09-11 09:54:09,005 - INFO - Initial checks done. Running the testcase now
2024-09-11 09:54:09,005 - INFO -
2024-09-11 09:54:09,569 - DEBUG - Response for create_network : {'network': {'id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'name': 'ctest-vn-08105750', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-08105750'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 09:54:09,762 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f907e04-4ea6-4057-b324-834f4f5f07fc', 'name': '', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'network_id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'ip_version': 4, 'cidr': '168.209.2.64/26', 'allocation_pools': [{'start': '168.209.2.66', 'end': '168.209.2.126'}], 'gateway_ip': '168.209.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.209.2.66', 'tags': [], 'project_id': '97c4abb0c5964021b5202a32b258d6cf'}}
2024-09-11 09:54:09,783 - INFO - Created VN ctest-vn-08105750
2024-09-11 09:54:09,839 - DEBUG - VN ctest-vn-08105750 UUID is ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:10,151 - DEBUG - Response for create_network : {'network': {'id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'name': 'ctest-vn-32797391', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-32797391'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 09:54:10,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '3621c861-c120-45bd-a80d-a1c2e0346274', 'name': '', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'network_id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'ip_version': 4, 'cidr': '3.135.224.0/26', 'allocation_pools': [{'start': '3.135.224.2', 'end': '3.135.224.62'}], 'gateway_ip': '3.135.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.135.224.2', 'tags': [], 'project_id': '97c4abb0c5964021b5202a32b258d6cf'}}
2024-09-11 09:54:10,347 - INFO - Created VN ctest-vn-32797391
2024-09-11 09:54:10,399 - DEBUG - VN ctest-vn-32797391 UUID is 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:10,519 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750, 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-45005617:ctest-vn-32797391, 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]
2024-09-11 09:54:10,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddf95635-1736-45f4-9d99-6e32c610ad51', 'name': 'ctest-vn-08105750', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f907e04-4ea6-4057-b324-834f4f5f07fc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-08105750'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']], 'subnet_ipam': [{'subnet_cidr': '168.209.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 09:54:11,095 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c69ed94-edf3-4ff0-9282-5fafe0b9ec16', 'name': 'ctest-vn-32797391', 'tenant_id': '97c4abb0c5964021b5202a32b258d6cf', 'project_id': '97c4abb0c5964021b5202a32b258d6cf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3621c861-c120-45bd-a80d-a1c2e0346274'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-vn-32797391'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']], 'subnet_ipam': [{'subnet_cidr': '3.135.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 09:54:11,243 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-11 09:54:11,541 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-11 09:54:11,572 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749
2024-09-11 09:54:11,589 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf
2024-09-11 09:54:11,667 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,678 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,685 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2
2024-09-11 09:54:11,692 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2
2024-09-11 09:54:11,700 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e7ccfd51-bddc-413d-b805-82f8e5b2ebfa
2024-09-11 09:54:11,706 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 09:54:11,706 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,714 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2
2024-09-11 09:54:11,725 - INFO - Verified VN network id 8 for VN ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,725 - INFO - Verifications in API Server for VN ctest-vn-08105750 passed
2024-09-11 09:54:11,725 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,733 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2
2024-09-11 09:54:11,740 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/ed91e5cd-fd37-438d-8814-7b9afc053fb2
2024-09-11 09:54:11,747 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/e7ccfd51-bddc-413d-b805-82f8e5b2ebfa
2024-09-11 09:54:11,760 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45005617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15994910337605715444', 'uuid-lslong': '11356229099741818193'}, 'enable': 'true', 'created': '2024-09-11T09:54:09', 'last-modified': '2024-09-11T09:54:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963836'}
2024-09-11 09:54:11,769 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 09:54:11,769 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-08105750 passed
2024-09-11 09:54:11,769 - DEBUG - ====Verifying policy data for ctest-vn-08105750 in API_Server ======
2024-09-11 09:54:11,769 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-11 09:54:11,776 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749
2024-09-11 09:54:11,787 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf
2024-09-11 09:54:11,853 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/ddf95635-1736-45f4-9d99-6e32c610ad51
2024-09-11 09:54:11,861 - DEBUG - ==>Verifying data for policy with id: 342246e3-9523-4c76-953c-b5d8682c81c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']
2024-09-11 09:54:11,861 - INFO - VN ctest-vn-08105750 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 09:54:11,861 - DEBUG - Verifying the vn in opserver
2024-09-11 09:54:11,861 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750 virtual network link through opserver 10.0.0.53
2024-09-11 09:54:11,861 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-11 09:54:12,153 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-11 09:54:12,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750?flat'}
2024-09-11 09:54:12,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-08105750 is found in opserver
2024-09-11 09:54:12,225 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 09:54:12,230 - DEBUG - VRF ids for VN ctest-vn-08105750: {}
2024-09-11 09:54:12,230 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-11 09:54:12,236 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749
2024-09-11 09:54:12,247 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf
2024-09-11 09:54:12,317 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,327 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,335 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b
2024-09-11 09:54:12,343 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b
2024-09-11 09:54:12,349 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/3bd9a4b8-4bff-4579-bffe-f85ed0c641ea
2024-09-11 09:54:12,355 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 09:54:12,355 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,363 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b
2024-09-11 09:54:12,374 - INFO - Verified VN network id 9 for VN 2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,375 - INFO - Verifications in API Server for VN ctest-vn-32797391 passed
2024-09-11 09:54:12,375 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,383 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b
2024-09-11 09:54:12,389 - DEBUG - Requesting: http://10.0.0.53:8082/routing-instance/50f90618-18ce-4f15-9871-6c65c5c5f10b
2024-09-11 09:54:12,396 - DEBUG - Requesting: http://10.0.0.53:8082/route-target/3bd9a4b8-4bff-4579-bffe-f85ed0c641ea
2024-09-11 09:54:12,407 - DEBUG - Control-node 10.0.0.53 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45005617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3200350234126536688', 'uuid-lslong': '10557105685504060438'}, 'enable': 'true', 'created': '2024-09-11T09:54:10', 'last-modified': '2024-09-11T09:54:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382748'}
2024-09-11 09:54:12,414 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 09:54:12,414 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32797391 passed
2024-09-11 09:54:12,414 - DEBUG - ====Verifying policy data for ctest-vn-32797391 in API_Server ======
2024-09-11 09:54:12,414 - DEBUG - Requesting: http://10.0.0.53:8082/domains
2024-09-11 09:54:12,420 - DEBUG - Requesting: http://10.0.0.53:8082/domain/d0b96564-9239-4b13-abae-add278b9a749
2024-09-11 09:54:12,432 - DEBUG - Requesting: http://10.0.0.53:8082/project/97c4abb0-c596-4021-b520-2a32b258d6cf
2024-09-11 09:54:12,501 - DEBUG - Requesting: http://10.0.0.53:8082/virtual-network/2c69ed94-edf3-4ff0-9282-5fafe0b9ec16
2024-09-11 09:54:12,509 - DEBUG - ==>Verifying data for policy with id: 342246e3-9523-4c76-953c-b5d8682c81c7, fqn: ['default-domain', 'ctest-TestBasicPolicy-45005617', 'ctest-policy-allow-all-07110015']
2024-09-11 09:54:12,509 - INFO - VN ctest-vn-32797391 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 09:54:12,509 - DEBUG - Verifying the vn in opserver
2024-09-11 09:54:12,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391 virtual network link through opserver 10.0.0.53
2024-09-11 09:54:12,509 - DEBUG - Requesting: http://10.0.0.53:8081/analytics/uves/virtual-networks
2024-09-11 09:54:12,520 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391', 'href': 'http://10.0.0.53:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391?flat'}
2024-09-11 09:54:12,520 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45005617:ctest-vn-32797391 is found in opserver
2024-09-11 09:54:12,531 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 09:54:12,536 - DEBUG - VRF ids for VN ctest-vn-32797391: {}
2024-09-11 09:54:12,589 - DEBUG - Services list from nova: [