2024-11-08 23:18:56,681 - INFO - Domain Default found not creating
2024-11-08 23:18:56,842 - INFO - Project ctest-TestBasicPolicy-15962514 not found, creating it
2024-11-08 23:18:57,335 - INFO - Created Project:ctest-TestBasicPolicy-15962514, ID : 0414296f-a255-45e6-b0bd-29762bd0a017
2024-11-08 23:18:58,845 - INFO - ================================================================================
2024-11-08 23:18:58,845 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 23:18:58,845 - 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-08 23:18:59,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.29': {'10.20.0.21': '0'}} with
2024-11-08 23:18:59,102 - INFO - Initial checks done. Running the testcase now
2024-11-08 23:18:59,102 - INFO -
2024-11-08 23:18:59,675 - DEBUG - Response for create_network : {'network': {'id': '78d4b5ce-456b-44ee-bc16-ed3a00445442', 'name': 'ctest-vn-57648441', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'project_id': '0414296fa25545e6b0bd29762bd0a017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-vn-57648441'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 23:18:59,872 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2a9c886-15a4-43d3-b26e-f438c40e7e29', 'name': '', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'network_id': '78d4b5ce-456b-44ee-bc16-ed3a00445442', 'ip_version': 4, 'cidr': '193.19.43.64/26', 'allocation_pools': [{'start': '193.19.43.66', 'end': '193.19.43.126'}], 'gateway_ip': '193.19.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.19.43.66', 'tags': [], 'project_id': '0414296fa25545e6b0bd29762bd0a017'}}
2024-11-08 23:18:59,898 - INFO - Created VN ctest-vn-57648441
2024-11-08 23:18:59,955 - DEBUG - VN ctest-vn-57648441 UUID is 78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:00,276 - DEBUG - Response for create_network : {'network': {'id': '5c332177-e4d9-4373-8620-cc3f7c53a86a', 'name': 'ctest-vn-61080912', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'project_id': '0414296fa25545e6b0bd29762bd0a017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-vn-61080912'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 23:19:00,426 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f72d0ada-1224-4350-8b1e-23d17a59da8e', 'name': '', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'network_id': '5c332177-e4d9-4373-8620-cc3f7c53a86a', 'ip_version': 4, 'cidr': '182.146.184.64/26', 'allocation_pools': [{'start': '182.146.184.66', 'end': '182.146.184.126'}], 'gateway_ip': '182.146.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.146.184.66', 'tags': [], 'project_id': '0414296fa25545e6b0bd29762bd0a017'}}
2024-11-08 23:19:00,444 - INFO - Created VN ctest-vn-61080912
2024-11-08 23:19:00,499 - DEBUG - VN ctest-vn-61080912 UUID is 5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:00,659 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441, 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-15962514:ctest-vn-61080912, 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-08 23:19:00,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '78d4b5ce-456b-44ee-bc16-ed3a00445442', 'name': 'ctest-vn-57648441', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'project_id': '0414296fa25545e6b0bd29762bd0a017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2a9c886-15a4-43d3-b26e-f438c40e7e29'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-vn-57648441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-policy-allow-all-77784897']], 'subnet_ipam': [{'subnet_cidr': '193.19.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 23:19:01,230 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c332177-e4d9-4373-8620-cc3f7c53a86a', 'name': 'ctest-vn-61080912', 'tenant_id': '0414296fa25545e6b0bd29762bd0a017', 'project_id': '0414296fa25545e6b0bd29762bd0a017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f72d0ada-1224-4350-8b1e-23d17a59da8e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-vn-61080912'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-policy-allow-all-77784897']], 'subnet_ipam': [{'subnet_cidr': '182.146.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 23:19:01,396 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-08 23:19:01,699 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-08 23:19:01,729 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2748541b-ab52-4c7c-bcea-eb00ccccd1b5
2024-11-08 23:19:01,744 - DEBUG - Requesting: http://10.0.0.29:8082/project/0414296f-a255-45e6-b0bd-29762bd0a017
2024-11-08 23:19:01,822 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:01,837 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:01,849 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9ddd3b4f-dab0-4c5c-b004-26a5b8a66e99
2024-11-08 23:19:01,859 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9ddd3b4f-dab0-4c5c-b004-26a5b8a66e99
2024-11-08 23:19:01,867 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3225b646-02d3-4c51-8e0f-a24baa9fad10
2024-11-08 23:19:01,873 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 23:19:01,873 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:01,885 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9ddd3b4f-dab0-4c5c-b004-26a5b8a66e99
2024-11-08 23:19:01,903 - INFO - Verified VN network id 9 for VN 78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:01,903 - INFO - Verifications in API Server for VN ctest-vn-57648441 passed
2024-11-08 23:19:01,903 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:01,916 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9ddd3b4f-dab0-4c5c-b004-26a5b8a66e99
2024-11-08 23:19:01,926 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/9ddd3b4f-dab0-4c5c-b004-26a5b8a66e99
2024-11-08 23:19:01,937 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/3225b646-02d3-4c51-8e0f-a24baa9fad10
2024-11-08 23:19:01,949 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15962514', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8706783877146559726', 'uuid-lslong': '13553280961986450498'}, 'enable': 'true', 'created': '2024-11-08T23:18:59', 'last-modified': '2024-11-08T23:19:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.988809'}
2024-11-08 23:19:01,955 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 23:19:01,955 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57648441 passed
2024-11-08 23:19:01,955 - DEBUG - ====Verifying policy data for ctest-vn-57648441 in API_Server ======
2024-11-08 23:19:01,955 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-08 23:19:01,961 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2748541b-ab52-4c7c-bcea-eb00ccccd1b5
2024-11-08 23:19:01,976 - DEBUG - Requesting: http://10.0.0.29:8082/project/0414296f-a255-45e6-b0bd-29762bd0a017
2024-11-08 23:19:02,053 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/78d4b5ce-456b-44ee-bc16-ed3a00445442
2024-11-08 23:19:02,066 - DEBUG - ==>Verifying data for policy with id: 90b85824-3890-41c4-ad7a-b0e22df8f846, fqn: ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-policy-allow-all-77784897']
2024-11-08 23:19:02,066 - INFO - VN ctest-vn-57648441 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 23:19:02,066 - DEBUG - Verifying the vn in opserver
2024-11-08 23:19:02,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441 virtual network link through opserver 10.0.0.29
2024-11-08 23:19:02,066 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-08 23:19:02,359 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-08 23:19:02,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441?flat'}
2024-11-08 23:19:02,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-57648441 is found in opserver
2024-11-08 23:19:02,431 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 23:19:02,436 - DEBUG - VRF ids for VN ctest-vn-57648441: {}
2024-11-08 23:19:02,436 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-08 23:19:02,441 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2748541b-ab52-4c7c-bcea-eb00ccccd1b5
2024-11-08 23:19:02,455 - DEBUG - Requesting: http://10.0.0.29:8082/project/0414296f-a255-45e6-b0bd-29762bd0a017
2024-11-08 23:19:02,531 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,551 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,564 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f505cd96-ea35-4b75-8dc0-8ee8a375a99c
2024-11-08 23:19:02,572 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f505cd96-ea35-4b75-8dc0-8ee8a375a99c
2024-11-08 23:19:02,579 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ddffb7c1-7791-4ffd-a211-ef097f93e91f
2024-11-08 23:19:02,585 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 23:19:02,585 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,597 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f505cd96-ea35-4b75-8dc0-8ee8a375a99c
2024-11-08 23:19:02,614 - INFO - Verified VN network id 10 for VN 5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,615 - INFO - Verifications in API Server for VN ctest-vn-61080912 passed
2024-11-08 23:19:02,615 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,627 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f505cd96-ea35-4b75-8dc0-8ee8a375a99c
2024-11-08 23:19:02,635 - DEBUG - Requesting: http://10.0.0.29:8082/routing-instance/f505cd96-ea35-4b75-8dc0-8ee8a375a99c
2024-11-08 23:19:02,644 - DEBUG - Requesting: http://10.0.0.29:8082/route-target/ddffb7c1-7791-4ffd-a211-ef097f93e91f
2024-11-08 23:19:02,656 - DEBUG - Control-node 10.0.0.29 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-61080912', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15962514', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6643690674125882227', 'uuid-lslong': '9664949373377947754'}, 'enable': 'true', 'created': '2024-11-08T23:19:00', 'last-modified': '2024-11-08T23:19:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447953'}
2024-11-08 23:19:02,662 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 23:19:02,662 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61080912 passed
2024-11-08 23:19:02,662 - DEBUG - ====Verifying policy data for ctest-vn-61080912 in API_Server ======
2024-11-08 23:19:02,662 - DEBUG - Requesting: http://10.0.0.29:8082/domains
2024-11-08 23:19:02,668 - DEBUG - Requesting: http://10.0.0.29:8082/domain/2748541b-ab52-4c7c-bcea-eb00ccccd1b5
2024-11-08 23:19:02,680 - DEBUG - Requesting: http://10.0.0.29:8082/project/0414296f-a255-45e6-b0bd-29762bd0a017
2024-11-08 23:19:02,761 - DEBUG - Requesting: http://10.0.0.29:8082/virtual-network/5c332177-e4d9-4373-8620-cc3f7c53a86a
2024-11-08 23:19:02,774 - DEBUG - ==>Verifying data for policy with id: 90b85824-3890-41c4-ad7a-b0e22df8f846, fqn: ['default-domain', 'ctest-TestBasicPolicy-15962514', 'ctest-policy-allow-all-77784897']
2024-11-08 23:19:02,774 - INFO - VN ctest-vn-61080912 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 23:19:02,774 - DEBUG - Verifying the vn in opserver
2024-11-08 23:19:02,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-61080912 virtual network link through opserver 10.0.0.29
2024-11-08 23:19:02,774 - DEBUG - Requesting: http://10.0.0.29:8081/analytics/uves/virtual-networks
2024-11-08 23:19:02,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-61080912', 'href': 'http://10.0.0.29:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-61080912?flat'}
2024-11-08 23:19:02,785 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15962514:ctest-vn-61080912 is found in opserver
2024-11-08 23:19:02,795 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 23:19:02,801 - DEBUG - VRF ids for VN ctest-vn-61080912: {}
2024-11-08 23:19:02,862 - DEBUG - Services list from nova: [