2024-11-04 03:44:17,395 - INFO - Domain Default found not creating
2024-11-04 03:44:17,592 - INFO - Project ctest-TestBasicPolicy-44931273 not found, creating it
2024-11-04 03:44:18,102 - INFO - Created Project:ctest-TestBasicPolicy-44931273, ID : d4717d45-618a-4f2a-b453-74bb218446b8
2024-11-04 03:44:19,672 - INFO - ================================================================================
2024-11-04 03:44:19,672 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-04 03:44:19,672 - 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-11-04 03:44:19,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.22': '0'}} with
2024-11-04 03:44:19,929 - INFO - Initial checks done. Running the testcase now
2024-11-04 03:44:19,929 - INFO -
2024-11-04 03:44:20,522 - DEBUG - Response for create_network : {'network': {'id': '2a798bbb-c8c0-4f36-89c0-ddca49dc94fe', 'name': 'ctest-vn-56663777', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'project_id': 'd4717d45618a4f2ab45374bb218446b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-vn-56663777'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 03:44:20,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f5cd4ad-4132-4e6c-80a4-44b5cc1b54be', 'name': '', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'network_id': '2a798bbb-c8c0-4f36-89c0-ddca49dc94fe', 'ip_version': 4, 'cidr': '164.117.96.0/26', 'allocation_pools': [{'start': '164.117.96.2', 'end': '164.117.96.62'}], 'gateway_ip': '164.117.96.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.117.96.2', 'tags': [], 'project_id': 'd4717d45618a4f2ab45374bb218446b8'}}
2024-11-04 03:44:20,708 - INFO - Created VN ctest-vn-56663777
2024-11-04 03:44:20,771 - DEBUG - VN ctest-vn-56663777 UUID is 2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:21,117 - DEBUG - Response for create_network : {'network': {'id': '5c6e7b18-5e96-4ba1-8fec-0e08056da2da', 'name': 'ctest-vn-14375965', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'project_id': 'd4717d45618a4f2ab45374bb218446b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-vn-14375965'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 03:44:21,287 - DEBUG - Response for create_subnet : {'subnet': {'id': '853982d2-90e2-416f-9c32-8c08356c83cf', 'name': '', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'network_id': '5c6e7b18-5e96-4ba1-8fec-0e08056da2da', 'ip_version': 4, 'cidr': '79.43.51.192/26', 'allocation_pools': [{'start': '79.43.51.194', 'end': '79.43.51.254'}], 'gateway_ip': '79.43.51.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.43.51.194', 'tags': [], 'project_id': 'd4717d45618a4f2ab45374bb218446b8'}}
2024-11-04 03:44:21,309 - INFO - Created VN ctest-vn-14375965
2024-11-04 03:44:21,367 - DEBUG - VN ctest-vn-14375965 UUID is 5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:21,499 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777, 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-44931273:ctest-vn-14375965, 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-11-04 03:44:21,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a798bbb-c8c0-4f36-89c0-ddca49dc94fe', 'name': 'ctest-vn-56663777', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'project_id': 'd4717d45618a4f2ab45374bb218446b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f5cd4ad-4132-4e6c-80a4-44b5cc1b54be'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-vn-56663777'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-policy-allow-all-10138491']], 'subnet_ipam': [{'subnet_cidr': '164.117.96.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 03:44:22,079 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c6e7b18-5e96-4ba1-8fec-0e08056da2da', 'name': 'ctest-vn-14375965', 'tenant_id': 'd4717d45618a4f2ab45374bb218446b8', 'project_id': 'd4717d45618a4f2ab45374bb218446b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['853982d2-90e2-416f-9c32-8c08356c83cf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-vn-14375965'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-policy-allow-all-10138491']], 'subnet_ipam': [{'subnet_cidr': '79.43.51.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 03:44:22,255 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 03:44:22,564 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 03:44:22,599 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b087c328-9d92-4400-921b-83fed47c14b5
2024-11-04 03:44:22,619 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4717d45-618a-4f2a-b453-74bb218446b8
2024-11-04 03:44:22,707 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,723 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,738 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b04175ad-0807-4f35-916c-7a3d3593a478
2024-11-04 03:44:22,750 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b04175ad-0807-4f35-916c-7a3d3593a478
2024-11-04 03:44:22,760 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/31612060-f988-4113-8b7a-45e2c63c3628
2024-11-04 03:44:22,768 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 03:44:22,769 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,784 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b04175ad-0807-4f35-916c-7a3d3593a478
2024-11-04 03:44:22,806 - INFO - Verified VN network id 8 for VN 2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,806 - INFO - Verifications in API Server for VN ctest-vn-56663777 passed
2024-11-04 03:44:22,806 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,821 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b04175ad-0807-4f35-916c-7a3d3593a478
2024-11-04 03:44:22,832 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/b04175ad-0807-4f35-916c-7a3d3593a478
2024-11-04 03:44:22,842 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/31612060-f988-4113-8b7a-45e2c63c3628
2024-11-04 03:44:22,857 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44931273', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3060631060418154294', 'uuid-lslong': '9926177439616898302'}, 'enable': 'true', 'created': '2024-11-04T03:44:20', 'last-modified': '2024-11-04T03:44:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.061307'}
2024-11-04 03:44:22,864 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 03:44:22,864 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56663777 passed
2024-11-04 03:44:22,864 - DEBUG - ====Verifying policy data for ctest-vn-56663777 in API_Server ======
2024-11-04 03:44:22,864 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 03:44:22,870 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b087c328-9d92-4400-921b-83fed47c14b5
2024-11-04 03:44:22,884 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4717d45-618a-4f2a-b453-74bb218446b8
2024-11-04 03:44:22,969 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/2a798bbb-c8c0-4f36-89c0-ddca49dc94fe
2024-11-04 03:44:22,986 - DEBUG - ==>Verifying data for policy with id: db1d1d39-4e1c-46f3-ba47-a446c89d3579, fqn: ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-policy-allow-all-10138491']
2024-11-04 03:44:22,986 - INFO - VN ctest-vn-56663777 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 03:44:22,986 - DEBUG - Verifying the vn in opserver
2024-11-04 03:44:22,986 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777 virtual network link through opserver 10.0.0.23
2024-11-04 03:44:22,986 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 03:44:23,286 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 03:44:23,356 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777?flat'}
2024-11-04 03:44:23,356 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-56663777 is found in opserver
2024-11-04 03:44:23,367 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 03:44:23,372 - DEBUG - VRF ids for VN ctest-vn-56663777: {}
2024-11-04 03:44:23,372 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 03:44:23,379 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b087c328-9d92-4400-921b-83fed47c14b5
2024-11-04 03:44:23,402 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4717d45-618a-4f2a-b453-74bb218446b8
2024-11-04 03:44:23,487 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,507 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,526 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/62817396-ef59-4f0a-9dd5-43281d5eb2b8
2024-11-04 03:44:23,537 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/62817396-ef59-4f0a-9dd5-43281d5eb2b8
2024-11-04 03:44:23,548 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/934e5238-7562-4376-95e0-06774c7d2619
2024-11-04 03:44:23,557 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 03:44:23,557 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,573 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/62817396-ef59-4f0a-9dd5-43281d5eb2b8
2024-11-04 03:44:23,595 - INFO - Verified VN network id 9 for VN 5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,595 - INFO - Verifications in API Server for VN ctest-vn-14375965 passed
2024-11-04 03:44:23,596 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,611 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/62817396-ef59-4f0a-9dd5-43281d5eb2b8
2024-11-04 03:44:23,621 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/62817396-ef59-4f0a-9dd5-43281d5eb2b8
2024-11-04 03:44:23,631 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/934e5238-7562-4376-95e0-06774c7d2619
2024-11-04 03:44:23,648 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-14375965', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44931273', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6660396243523881889', 'uuid-lslong': '10370679469541008090'}, 'enable': 'true', 'created': '2024-11-04T03:44:21', 'last-modified': '2024-11-04T03:44:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.601117'}
2024-11-04 03:44:23,657 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 03:44:23,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-14375965 passed
2024-11-04 03:44:23,657 - DEBUG - ====Verifying policy data for ctest-vn-14375965 in API_Server ======
2024-11-04 03:44:23,657 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-11-04 03:44:23,666 - DEBUG - Requesting: http://10.0.0.23:8082/domain/b087c328-9d92-4400-921b-83fed47c14b5
2024-11-04 03:44:23,682 - DEBUG - Requesting: http://10.0.0.23:8082/project/d4717d45-618a-4f2a-b453-74bb218446b8
2024-11-04 03:44:23,767 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/5c6e7b18-5e96-4ba1-8fec-0e08056da2da
2024-11-04 03:44:23,782 - DEBUG - ==>Verifying data for policy with id: db1d1d39-4e1c-46f3-ba47-a446c89d3579, fqn: ['default-domain', 'ctest-TestBasicPolicy-44931273', 'ctest-policy-allow-all-10138491']
2024-11-04 03:44:23,782 - INFO - VN ctest-vn-14375965 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 03:44:23,782 - DEBUG - Verifying the vn in opserver
2024-11-04 03:44:23,782 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-14375965 virtual network link through opserver 10.0.0.23
2024-11-04 03:44:23,783 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-11-04 03:44:23,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-14375965', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-14375965?flat'}
2024-11-04 03:44:23,795 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44931273:ctest-vn-14375965 is found in opserver
2024-11-04 03:44:23,807 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 03:44:23,812 - DEBUG - VRF ids for VN ctest-vn-14375965: {}
2024-11-04 03:44:23,873 - DEBUG - Services list from nova: [