2024-11-04 06:51:18,348 - INFO - Domain Default found not creating
2024-11-04 06:51:18,534 - INFO - Project ctest-TestBasicPolicy-03121609 not found, creating it
2024-11-04 06:51:19,194 - INFO - Created Project:ctest-TestBasicPolicy-03121609, ID : b5075ded-6975-42d5-9bfa-7ae7c1e67b2e
2024-11-04 06:51:20,816 - INFO - ================================================================================
2024-11-04 06:51:20,816 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-04 06:51:20,816 - 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 06:51:21,082 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.5': '0'}} with
2024-11-04 06:51:21,082 - INFO - Initial checks done. Running the testcase now
2024-11-04 06:51:21,082 - INFO -
2024-11-04 06:51:21,694 - DEBUG - Response for create_network : {'network': {'id': '83951c92-1849-4c64-9d70-b721cc415b24', 'name': 'ctest-vn-51069311', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-vn-51069311'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 06:51:21,885 - DEBUG - Response for create_subnet : {'subnet': {'id': '124c691f-3d9d-4d2f-804f-ae609ebe8850', 'name': '', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'network_id': '83951c92-1849-4c64-9d70-b721cc415b24', 'ip_version': 4, 'cidr': '204.147.249.128/26', 'allocation_pools': [{'start': '204.147.249.130', 'end': '204.147.249.190'}], 'gateway_ip': '204.147.249.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.147.249.130', 'tags': [], 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e'}}
2024-11-04 06:51:21,905 - INFO - Created VN ctest-vn-51069311
2024-11-04 06:51:21,964 - DEBUG - VN ctest-vn-51069311 UUID is 83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:22,308 - DEBUG - Response for create_network : {'network': {'id': '4d9f5c64-ea5e-406f-9891-bb865cfe474c', 'name': 'ctest-vn-11708627', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-vn-11708627'], 'port_security_enabled': True, 'description': ''}}
2024-11-04 06:51:22,558 - DEBUG - Response for create_subnet : {'subnet': {'id': '146504b8-3710-4201-9e5c-07c9e25998d9', 'name': '', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'network_id': '4d9f5c64-ea5e-406f-9891-bb865cfe474c', 'ip_version': 4, 'cidr': '152.239.198.0/26', 'allocation_pools': [{'start': '152.239.198.2', 'end': '152.239.198.62'}], 'gateway_ip': '152.239.198.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.239.198.2', 'tags': [], 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e'}}
2024-11-04 06:51:22,582 - INFO - Created VN ctest-vn-11708627
2024-11-04 06:51:22,643 - DEBUG - VN ctest-vn-11708627 UUID is 4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:22,778 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311, 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-03121609:ctest-vn-11708627, 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 06:51:23,136 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83951c92-1849-4c64-9d70-b721cc415b24', 'name': 'ctest-vn-51069311', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['124c691f-3d9d-4d2f-804f-ae609ebe8850'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-vn-51069311'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-policy-allow-all-14405838']], 'subnet_ipam': [{'subnet_cidr': '204.147.249.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 06:51:23,449 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d9f5c64-ea5e-406f-9891-bb865cfe474c', 'name': 'ctest-vn-11708627', 'tenant_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'project_id': 'b5075ded697542d59bfa7ae7c1e67b2e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['146504b8-3710-4201-9e5c-07c9e25998d9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-vn-11708627'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-policy-allow-all-14405838']], 'subnet_ipam': [{'subnet_cidr': '152.239.198.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-04 06:51:23,595 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-04 06:51:23,902 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-04 06:51:23,938 - DEBUG - Requesting: http://10.0.0.30:8082/domain/e4efe338-1a31-48df-a976-112118f34c38
2024-11-04 06:51:23,955 - DEBUG - Requesting: http://10.0.0.30:8082/project/b5075ded-6975-42d5-9bfa-7ae7c1e67b2e
2024-11-04 06:51:24,039 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,060 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,077 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9e531d07-d979-4deb-9924-41a260561c2f
2024-11-04 06:51:24,088 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9e531d07-d979-4deb-9924-41a260561c2f
2024-11-04 06:51:24,098 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8766ec00-36c2-4bd5-9831-a04c157556bd
2024-11-04 06:51:24,107 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 06:51:24,107 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,123 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9e531d07-d979-4deb-9924-41a260561c2f
2024-11-04 06:51:24,146 - INFO - Verified VN network id 8 for VN 83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,146 - INFO - Verifications in API Server for VN ctest-vn-51069311 passed
2024-11-04 06:51:24,146 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,162 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9e531d07-d979-4deb-9924-41a260561c2f
2024-11-04 06:51:24,173 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/9e531d07-d979-4deb-9924-41a260561c2f
2024-11-04 06:51:24,184 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/8766ec00-36c2-4bd5-9831-a04c157556bd
2024-11-04 06:51:24,201 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03121609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9481516004296707172', 'uuid-lslong': '11344768817134918436'}, 'enable': 'true', 'created': '2024-11-04T06:51:21', 'last-modified': '2024-11-04T06:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.107739'}
2024-11-04 06:51:24,207 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-04 06:51:24,208 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51069311 passed
2024-11-04 06:51:24,208 - DEBUG - ====Verifying policy data for ctest-vn-51069311 in API_Server ======
2024-11-04 06:51:24,208 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-04 06:51:24,214 - DEBUG - Requesting: http://10.0.0.30:8082/domain/e4efe338-1a31-48df-a976-112118f34c38
2024-11-04 06:51:24,230 - DEBUG - Requesting: http://10.0.0.30:8082/project/b5075ded-6975-42d5-9bfa-7ae7c1e67b2e
2024-11-04 06:51:24,315 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/83951c92-1849-4c64-9d70-b721cc415b24
2024-11-04 06:51:24,331 - DEBUG - ==>Verifying data for policy with id: 2b450ef9-2cb7-46f9-98ee-a76a12d97c40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-policy-allow-all-14405838']
2024-11-04 06:51:24,331 - INFO - VN ctest-vn-51069311 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 06:51:24,331 - DEBUG - Verifying the vn in opserver
2024-11-04 06:51:24,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311 virtual network link through opserver 10.0.0.30
2024-11-04 06:51:24,331 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-04 06:51:24,629 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-04 06:51:24,696 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311?flat'}
2024-11-04 06:51:24,696 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-51069311 is found in opserver
2024-11-04 06:51:24,708 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 06:51:24,716 - DEBUG - VRF ids for VN ctest-vn-51069311: {}
2024-11-04 06:51:24,716 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-04 06:51:24,723 - DEBUG - Requesting: http://10.0.0.30:8082/domain/e4efe338-1a31-48df-a976-112118f34c38
2024-11-04 06:51:24,738 - DEBUG - Requesting: http://10.0.0.30:8082/project/b5075ded-6975-42d5-9bfa-7ae7c1e67b2e
2024-11-04 06:51:24,824 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:24,843 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:24,859 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/d60c6ec9-e04c-4a9d-9362-4c19a0d0131c
2024-11-04 06:51:24,869 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/d60c6ec9-e04c-4a9d-9362-4c19a0d0131c
2024-11-04 06:51:24,880 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/905a4768-1c45-4883-9221-37577d679afd
2024-11-04 06:51:24,889 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 06:51:24,889 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:24,903 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/d60c6ec9-e04c-4a9d-9362-4c19a0d0131c
2024-11-04 06:51:24,928 - INFO - Verified VN network id 9 for VN 4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:24,928 - INFO - Verifications in API Server for VN ctest-vn-11708627 passed
2024-11-04 06:51:24,929 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:24,944 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/d60c6ec9-e04c-4a9d-9362-4c19a0d0131c
2024-11-04 06:51:24,955 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/d60c6ec9-e04c-4a9d-9362-4c19a0d0131c
2024-11-04 06:51:24,966 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/905a4768-1c45-4883-9221-37577d679afd
2024-11-04 06:51:24,984 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-11708627', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-03121609', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5593290850715975791', 'uuid-lslong': '10993774351148271436'}, 'enable': 'true', 'created': '2024-11-04T06:51:22', 'last-modified': '2024-11-04T06:51:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.616426'}
2024-11-04 06:51:24,990 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-04 06:51:24,990 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11708627 passed
2024-11-04 06:51:24,991 - DEBUG - ====Verifying policy data for ctest-vn-11708627 in API_Server ======
2024-11-04 06:51:24,991 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-11-04 06:51:24,997 - DEBUG - Requesting: http://10.0.0.30:8082/domain/e4efe338-1a31-48df-a976-112118f34c38
2024-11-04 06:51:25,011 - DEBUG - Requesting: http://10.0.0.30:8082/project/b5075ded-6975-42d5-9bfa-7ae7c1e67b2e
2024-11-04 06:51:25,099 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/4d9f5c64-ea5e-406f-9891-bb865cfe474c
2024-11-04 06:51:25,114 - DEBUG - ==>Verifying data for policy with id: 2b450ef9-2cb7-46f9-98ee-a76a12d97c40, fqn: ['default-domain', 'ctest-TestBasicPolicy-03121609', 'ctest-policy-allow-all-14405838']
2024-11-04 06:51:25,114 - INFO - VN ctest-vn-11708627 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-04 06:51:25,114 - DEBUG - Verifying the vn in opserver
2024-11-04 06:51:25,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-11708627 virtual network link through opserver 10.0.0.30
2024-11-04 06:51:25,114 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-11-04 06:51:25,126 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-11708627', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-11708627?flat'}
2024-11-04 06:51:25,126 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-03121609:ctest-vn-11708627 is found in opserver
2024-11-04 06:51:25,138 - DEBUG - Do not have enough data to verify VN in agent
2024-11-04 06:51:25,145 - DEBUG - VRF ids for VN ctest-vn-11708627: {}
2024-11-04 06:51:25,221 - DEBUG - Services list from nova: [