2024-09-17 22:46:47,501 - INFO - Domain Default found not creating
2024-09-17 22:46:47,677 - INFO - Project ctest-TestBasicPolicy-61090045 not found, creating it
2024-09-17 22:46:48,186 - INFO - Created Project:ctest-TestBasicPolicy-61090045, ID : 8ddc3d22-8a37-41bf-b746-6fd815e9e5c9
2024-09-17 22:46:49,811 - INFO - ================================================================================
2024-09-17 22:46:49,811 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 22:46:49,811 - 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-17 22:46:50,071 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.6': '0'}} with
2024-09-17 22:46:50,071 - INFO - Initial checks done. Running the testcase now
2024-09-17 22:46:50,071 - INFO -
2024-09-17 22:46:50,684 - DEBUG - Response for create_network : {'network': {'id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'name': 'ctest-vn-83050709', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-83050709'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:46:50,868 - DEBUG - Response for create_subnet : {'subnet': {'id': '374ecbaa-5aa9-41b1-9114-54e8edff6428', 'name': '', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'network_id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'ip_version': 4, 'cidr': '99.71.30.192/26', 'allocation_pools': [{'start': '99.71.30.194', 'end': '99.71.30.254'}], 'gateway_ip': '99.71.30.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.71.30.194', 'tags': [], 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9'}}
2024-09-17 22:46:50,890 - INFO - Created VN ctest-vn-83050709
2024-09-17 22:46:50,955 - DEBUG - VN ctest-vn-83050709 UUID is eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:51,285 - DEBUG - Response for create_network : {'network': {'id': '8656382b-379b-4865-83e6-268045efe3e2', 'name': 'ctest-vn-27127734', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-27127734'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:46:51,447 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc742316-044d-4930-a875-f85ac8a78e1b', 'name': '', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'network_id': '8656382b-379b-4865-83e6-268045efe3e2', 'ip_version': 4, 'cidr': '15.208.22.64/26', 'allocation_pools': [{'start': '15.208.22.66', 'end': '15.208.22.126'}], 'gateway_ip': '15.208.22.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.208.22.66', 'tags': [], 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9'}}
2024-09-17 22:46:51,469 - INFO - Created VN ctest-vn-27127734
2024-09-17 22:46:51,527 - DEBUG - VN ctest-vn-27127734 UUID is 8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:51,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709, 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-61090045:ctest-vn-27127734, 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-17 22:46:51,993 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eee330b0-0247-48b2-a52b-92a15e25b44b', 'name': 'ctest-vn-83050709', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['374ecbaa-5aa9-41b1-9114-54e8edff6428'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-83050709'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']], 'subnet_ipam': [{'subnet_cidr': '99.71.30.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:46:52,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8656382b-379b-4865-83e6-268045efe3e2', 'name': 'ctest-vn-27127734', 'tenant_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'project_id': '8ddc3d228a3741bfb7466fd815e9e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc742316-044d-4930-a875-f85ac8a78e1b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-vn-27127734'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']], 'subnet_ipam': [{'subnet_cidr': '15.208.22.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 22:46:52,423 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 22:46:52,718 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 22:46:52,759 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e
2024-09-17 22:46:52,776 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9
2024-09-17 22:46:52,862 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:52,879 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:52,894 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5
2024-09-17 22:46:52,905 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5
2024-09-17 22:46:52,914 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/881af8f9-01a0-495f-ac0b-017a059996a8
2024-09-17 22:46:52,923 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 22:46:52,923 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:52,939 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5
2024-09-17 22:46:52,964 - INFO - Verified VN network id 9 for VN eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:52,964 - INFO - Verifications in API Server for VN ctest-vn-83050709 passed
2024-09-17 22:46:52,964 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:52,978 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5
2024-09-17 22:46:52,989 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/5cdc0f72-3dd4-488e-a712-c797e51799b5
2024-09-17 22:46:52,999 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/881af8f9-01a0-495f-ac0b-017a059996a8
2024-09-17 22:46:53,014 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61090045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17213655733250771122', 'uuid-lslong': '11901767662023586891'}, 'enable': 'true', 'created': '2024-09-17T22:46:50', 'last-modified': '2024-09-17T22:46:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044396'}
2024-09-17 22:46:53,020 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 22:46:53,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83050709 passed
2024-09-17 22:46:53,021 - DEBUG - ====Verifying policy data for ctest-vn-83050709 in API_Server ======
2024-09-17 22:46:53,021 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 22:46:53,027 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e
2024-09-17 22:46:53,041 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9
2024-09-17 22:46:53,121 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eee330b0-0247-48b2-a52b-92a15e25b44b
2024-09-17 22:46:53,149 - DEBUG - ==>Verifying data for policy with id: 024cea9f-36e9-42aa-9b33-a1bac17b1ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']
2024-09-17 22:46:53,149 - INFO - VN ctest-vn-83050709 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 22:46:53,149 - DEBUG - Verifying the vn in opserver
2024-09-17 22:46:53,149 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709 virtual network link through opserver 10.0.0.33
2024-09-17 22:46:53,149 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 22:46:53,445 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 22:46:53,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709?flat'}
2024-09-17 22:46:53,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-83050709 is found in opserver
2024-09-17 22:46:53,530 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 22:46:53,536 - DEBUG - VRF ids for VN ctest-vn-83050709: {}
2024-09-17 22:46:53,536 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 22:46:53,542 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e
2024-09-17 22:46:53,557 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9
2024-09-17 22:46:53,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,652 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,668 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be
2024-09-17 22:46:53,677 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be
2024-09-17 22:46:53,686 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bbbe6975-c8a8-4128-9d96-acfd93a1a311
2024-09-17 22:46:53,693 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 22:46:53,693 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,707 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be
2024-09-17 22:46:53,727 - INFO - Verified VN network id 10 for VN 8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,728 - INFO - Verifications in API Server for VN ctest-vn-27127734 passed
2024-09-17 22:46:53,728 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,742 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be
2024-09-17 22:46:53,753 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/79bcfa3c-2a82-4b78-970b-2ef3622d43be
2024-09-17 22:46:53,762 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/bbbe6975-c8a8-4128-9d96-acfd93a1a311
2024-09-17 22:46:53,776 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61090045', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9679986207347132517', 'uuid-lslong': '9504326395983029218'}, 'enable': 'true', 'created': '2024-09-17T22:46:51', 'last-modified': '2024-09-17T22:46:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.549634'}
2024-09-17 22:46:53,783 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 22:46:53,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27127734 passed
2024-09-17 22:46:53,783 - DEBUG - ====Verifying policy data for ctest-vn-27127734 in API_Server ======
2024-09-17 22:46:53,783 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2024-09-17 22:46:53,790 - DEBUG - Requesting: http://10.0.0.33:8082/domain/ebedd754-b6c3-4f84-8d1c-6c8da416e57e
2024-09-17 22:46:53,805 - DEBUG - Requesting: http://10.0.0.33:8082/project/8ddc3d22-8a37-41bf-b746-6fd815e9e5c9
2024-09-17 22:46:53,886 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/8656382b-379b-4865-83e6-268045efe3e2
2024-09-17 22:46:53,900 - DEBUG - ==>Verifying data for policy with id: 024cea9f-36e9-42aa-9b33-a1bac17b1ffa, fqn: ['default-domain', 'ctest-TestBasicPolicy-61090045', 'ctest-policy-allow-all-40086560']
2024-09-17 22:46:53,900 - INFO - VN ctest-vn-27127734 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 22:46:53,901 - DEBUG - Verifying the vn in opserver
2024-09-17 22:46:53,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734 virtual network link through opserver 10.0.0.33
2024-09-17 22:46:53,901 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2024-09-17 22:46:53,913 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734?flat'}
2024-09-17 22:46:53,913 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61090045:ctest-vn-27127734 is found in opserver
2024-09-17 22:46:53,924 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 22:46:53,929 - DEBUG - VRF ids for VN ctest-vn-27127734: {}
2024-09-17 22:46:53,985 - DEBUG - Services list from nova: [