2024-10-28 16:24:34,374 - INFO - Domain Default found not creating
2024-10-28 16:24:34,573 - INFO - Project ctest-TestBasicPolicy-03841069 not found, creating it
2024-10-28 16:24:35,118 - INFO - Created Project:ctest-TestBasicPolicy-03841069, ID : 65ad1f0f-7bb3-42c2-8c73-4e4a62409337
2024-10-28 16:24:36,709 - INFO - ================================================================================
2024-10-28 16:24:36,709 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-28 16:24:36,709 - 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-10-28 16:24:36,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.42': {'10.20.0.22': '0'}} with
2024-10-28 16:24:36,968 - INFO - Initial checks done. Running the testcase now
2024-10-28 16:24:36,968 - INFO -
2024-10-28 16:24:37,579 - DEBUG - Response for create_network : {'network': {'id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'name': 'ctest-vn-82247956', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-82247956'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:24:37,785 - DEBUG - Response for create_subnet : {'subnet': {'id': '6c09a119-d97e-4507-9e1d-f0542a285889', 'name': '', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'network_id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'ip_version': 4, 'cidr': '174.28.38.64/26', 'allocation_pools': [{'start': '174.28.38.66', 'end': '174.28.38.126'}], 'gateway_ip': '174.28.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.28.38.66', 'tags': [], 'project_id': '65ad1f0f7bb342c28c734e4a62409337'}}
2024-10-28 16:24:37,807 - INFO - Created VN ctest-vn-82247956
2024-10-28 16:24:37,865 - DEBUG - VN ctest-vn-82247956 UUID is cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:38,217 - DEBUG - Response for create_network : {'network': {'id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'name': 'ctest-vn-45330416', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-45330416'], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:24:38,418 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a6870da9-694c-4ec4-a02a-7a43f8ba8bb0', 'name': '', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'network_id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'ip_version': 4, 'cidr': '41.153.77.64/26', 'allocation_pools': [{'start': '41.153.77.66', 'end': '41.153.77.126'}], 'gateway_ip': '41.153.77.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.153.77.66', 'tags': [], 'project_id': '65ad1f0f7bb342c28c734e4a62409337'}}
2024-10-28 16:24:38,442 - INFO - Created VN ctest-vn-45330416
2024-10-28 16:24:38,501 - DEBUG - VN ctest-vn-45330416 UUID is 648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:38,631 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956, 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-03841069:ctest-vn-45330416, 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-10-28 16:24:38,962 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd483632-0c21-4534-9b41-29703d6abc95', 'name': 'ctest-vn-82247956', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6c09a119-d97e-4507-9e1d-f0542a285889'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-82247956'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']], 'subnet_ipam': [{'subnet_cidr': '174.28.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:24:39,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '648133f9-e7d3-4fd2-9442-20a7812076f5', 'name': 'ctest-vn-45330416', 'tenant_id': '65ad1f0f7bb342c28c734e4a62409337', 'project_id': '65ad1f0f7bb342c28c734e4a62409337', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a6870da9-694c-4ec4-a02a-7a43f8ba8bb0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-vn-45330416'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']], 'subnet_ipam': [{'subnet_cidr': '41.153.77.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-28 16:24:39,401 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 16:24:39,697 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 16:24:39,732 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3
2024-10-28 16:24:39,748 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337
2024-10-28 16:24:39,831 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:39,848 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:39,869 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3
2024-10-28 16:24:39,879 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3
2024-10-28 16:24:39,890 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f3c02318-ef2a-45d7-8eb2-da3b900f5d7a
2024-10-28 16:24:39,898 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:24:39,898 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:39,913 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3
2024-10-28 16:24:39,939 - INFO - Verified VN network id 8 for VN cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:39,939 - INFO - Verifications in API Server for VN ctest-vn-82247956 passed
2024-10-28 16:24:39,939 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:39,955 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3
2024-10-28 16:24:39,966 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/d7f7fac3-6aa0-4f1d-af49-5812673f0eb3
2024-10-28 16:24:39,976 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/f3c02318-ef2a-45d7-8eb2-da3b900f5d7a
2024-10-28 16:24:39,992 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03841069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14792132564678165812', 'uuid-lslong': '11187268511408503957'}, 'enable': 'true', 'created': '2024-10-28T16:24:37', 'last-modified': '2024-10-28T16:24:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.057023'}
2024-10-28 16:24:40,001 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-28 16:24:40,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82247956 passed
2024-10-28 16:24:40,001 - DEBUG - ====Verifying policy data for ctest-vn-82247956 in API_Server ======
2024-10-28 16:24:40,001 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 16:24:40,010 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3
2024-10-28 16:24:40,028 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337
2024-10-28 16:24:40,112 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/cd483632-0c21-4534-9b41-29703d6abc95
2024-10-28 16:24:40,132 - DEBUG - ==>Verifying data for policy with id: 923826bb-8de0-4f20-9fc8-c1e3fcfa6831, fqn: ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']
2024-10-28 16:24:40,132 - INFO - VN ctest-vn-82247956 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:24:40,132 - DEBUG - Verifying the vn in opserver
2024-10-28 16:24:40,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956 virtual network link through opserver 10.0.0.42
2024-10-28 16:24:40,133 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 16:24:40,437 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 16:24:40,505 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956?flat'}
2024-10-28 16:24:40,505 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-82247956 is found in opserver
2024-10-28 16:24:40,517 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:24:40,523 - DEBUG - VRF ids for VN ctest-vn-82247956: {}
2024-10-28 16:24:40,523 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 16:24:40,539 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3
2024-10-28 16:24:40,557 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337
2024-10-28 16:24:40,641 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,661 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,677 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843
2024-10-28 16:24:40,689 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843
2024-10-28 16:24:40,699 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/19e3c65e-1b65-4eb1-ad05-763537912ae6
2024-10-28 16:24:40,708 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:24:40,708 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,723 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843
2024-10-28 16:24:40,745 - INFO - Verified VN network id 9 for VN 648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,745 - INFO - Verifications in API Server for VN ctest-vn-45330416 passed
2024-10-28 16:24:40,745 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,761 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843
2024-10-28 16:24:40,770 - DEBUG - Requesting: http://10.0.0.42:8082/routing-instance/7418ce71-bab0-40e7-afe8-5a987da6d843
2024-10-28 16:24:40,779 - DEBUG - Requesting: http://10.0.0.42:8082/route-target/19e3c65e-1b65-4eb1-ad05-763537912ae6
2024-10-28 16:24:40,794 - DEBUG - Control-node 10.0.0.42 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03841069', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7242126824217726930', 'uuid-lslong': '10683137169874253557'}, 'enable': 'true', 'created': '2024-10-28T16:24:38', 'last-modified': '2024-10-28T16:24:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.596869'}
2024-10-28 16:24:40,802 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-28 16:24:40,804 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45330416 passed
2024-10-28 16:24:40,805 - DEBUG - ====Verifying policy data for ctest-vn-45330416 in API_Server ======
2024-10-28 16:24:40,805 - DEBUG - Requesting: http://10.0.0.42:8082/domains
2024-10-28 16:24:40,812 - DEBUG - Requesting: http://10.0.0.42:8082/domain/0eadca13-f91b-4073-b75d-e931ef45dff3
2024-10-28 16:24:40,826 - DEBUG - Requesting: http://10.0.0.42:8082/project/65ad1f0f-7bb3-42c2-8c73-4e4a62409337
2024-10-28 16:24:40,912 - DEBUG - Requesting: http://10.0.0.42:8082/virtual-network/648133f9-e7d3-4fd2-9442-20a7812076f5
2024-10-28 16:24:40,927 - DEBUG - ==>Verifying data for policy with id: 923826bb-8de0-4f20-9fc8-c1e3fcfa6831, fqn: ['default-domain', 'ctest-TestBasicPolicy-03841069', 'ctest-policy-allow-all-54014681']
2024-10-28 16:24:40,927 - INFO - VN ctest-vn-45330416 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-28 16:24:40,927 - DEBUG - Verifying the vn in opserver
2024-10-28 16:24:40,927 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416 virtual network link through opserver 10.0.0.42
2024-10-28 16:24:40,927 - DEBUG - Requesting: http://10.0.0.42:8081/analytics/uves/virtual-networks
2024-10-28 16:24:40,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416', 'href': 'http://10.0.0.42:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416?flat'}
2024-10-28 16:24:40,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03841069:ctest-vn-45330416 is found in opserver
2024-10-28 16:24:40,952 - DEBUG - Do not have enough data to verify VN in agent
2024-10-28 16:24:40,958 - DEBUG - VRF ids for VN ctest-vn-45330416: {}
2024-10-28 16:24:41,031 - DEBUG - Services list from nova: [