2024-08-26 17:12:07,031 - INFO - Domain Default found not creating
2024-08-26 17:12:07,208 - INFO - Project ctest-TestBasicPolicy-41936870 not found, creating it
2024-08-26 17:12:07,692 - INFO - Created Project:ctest-TestBasicPolicy-41936870, ID : 25301914-95ed-4c2c-8bc6-24fd88f2c5c4
2024-08-26 17:12:09,221 - INFO - ================================================================================
2024-08-26 17:12:09,221 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-26 17:12:09,221 - 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-08-26 17:12:09,487 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.11': '0'}} with
2024-08-26 17:12:09,487 - INFO - Initial checks done. Running the testcase now
2024-08-26 17:12:09,487 - INFO -
2024-08-26 17:12:10,059 - DEBUG - Response for create_network : {'network': {'id': '9b9730f3-217a-440b-91e3-c44b2e3c2581', 'name': 'ctest-vn-90218824', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-vn-90218824'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:12:10,272 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff254dc9-af7f-4146-9d7c-ec892b40bedc', 'name': '', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'network_id': '9b9730f3-217a-440b-91e3-c44b2e3c2581', 'ip_version': 4, 'cidr': '147.130.120.0/26', 'allocation_pools': [{'start': '147.130.120.2', 'end': '147.130.120.62'}], 'gateway_ip': '147.130.120.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.130.120.2', 'tags': [], 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4'}}
2024-08-26 17:12:10,305 - INFO - Created VN ctest-vn-90218824
2024-08-26 17:12:10,361 - DEBUG - VN ctest-vn-90218824 UUID is 9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:10,719 - DEBUG - Response for create_network : {'network': {'id': '7921edb2-9608-4187-8251-f5f4208c1859', 'name': 'ctest-vn-06041027', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-vn-06041027'], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:12:11,312 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a961f9dd-c17e-4ad3-8d5e-2079e1c3dc8b', 'name': '', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'network_id': '7921edb2-9608-4187-8251-f5f4208c1859', 'ip_version': 4, 'cidr': '195.165.154.64/26', 'allocation_pools': [{'start': '195.165.154.66', 'end': '195.165.154.126'}], 'gateway_ip': '195.165.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.165.154.66', 'tags': [], 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4'}}
2024-08-26 17:12:11,359 - INFO - Created VN ctest-vn-06041027
2024-08-26 17:12:11,416 - DEBUG - VN ctest-vn-06041027 UUID is 7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:11,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824, 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-41936870:ctest-vn-06041027, 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-08-26 17:12:11,941 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9b9730f3-217a-440b-91e3-c44b2e3c2581', 'name': 'ctest-vn-90218824', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff254dc9-af7f-4146-9d7c-ec892b40bedc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-vn-90218824'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-policy-allow-all-24140970']], 'subnet_ipam': [{'subnet_cidr': '147.130.120.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:12:12,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7921edb2-9608-4187-8251-f5f4208c1859', 'name': 'ctest-vn-06041027', 'tenant_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'project_id': '2530191495ed4c2c8bc624fd88f2c5c4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a961f9dd-c17e-4ad3-8d5e-2079e1c3dc8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-vn-06041027'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-policy-allow-all-24140970']], 'subnet_ipam': [{'subnet_cidr': '195.165.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-26 17:12:12,356 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-26 17:12:12,652 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-26 17:12:12,688 - DEBUG - Requesting: http://10.0.0.28:8082/domain/213d3b61-55cb-4554-8935-a9cac2a5f740
2024-08-26 17:12:12,703 - DEBUG - Requesting: http://10.0.0.28:8082/project/25301914-95ed-4c2c-8bc6-24fd88f2c5c4
2024-08-26 17:12:12,779 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,789 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,797 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2cfe8d18-e21f-4360-b43d-b9d5d36e3143
2024-08-26 17:12:12,805 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2cfe8d18-e21f-4360-b43d-b9d5d36e3143
2024-08-26 17:12:12,812 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/e20d55eb-ed39-4050-b0a5-c341e0e805a2
2024-08-26 17:12:12,819 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 17:12:12,819 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,827 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2cfe8d18-e21f-4360-b43d-b9d5d36e3143
2024-08-26 17:12:12,839 - INFO - Verified VN network id 9 for VN 9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,840 - INFO - Verifications in API Server for VN ctest-vn-90218824 passed
2024-08-26 17:12:12,840 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,850 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2cfe8d18-e21f-4360-b43d-b9d5d36e3143
2024-08-26 17:12:12,857 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/2cfe8d18-e21f-4360-b43d-b9d5d36e3143
2024-08-26 17:12:12,864 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/e20d55eb-ed39-4050-b0a5-c341e0e805a2
2024-08-26 17:12:12,876 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41936870', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11211483618158986251', 'uuid-lslong': '10512461782390154625'}, 'enable': 'true', 'created': '2024-08-26T17:12:10', 'last-modified': '2024-08-26T17:12:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964675'}
2024-08-26 17:12:12,884 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-26 17:12:12,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-90218824 passed
2024-08-26 17:12:12,884 - DEBUG - ====Verifying policy data for ctest-vn-90218824 in API_Server ======
2024-08-26 17:12:12,884 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-26 17:12:12,891 - DEBUG - Requesting: http://10.0.0.28:8082/domain/213d3b61-55cb-4554-8935-a9cac2a5f740
2024-08-26 17:12:12,903 - DEBUG - Requesting: http://10.0.0.28:8082/project/25301914-95ed-4c2c-8bc6-24fd88f2c5c4
2024-08-26 17:12:12,974 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/9b9730f3-217a-440b-91e3-c44b2e3c2581
2024-08-26 17:12:12,983 - DEBUG - ==>Verifying data for policy with id: 80cb4634-1d84-4d85-a642-719d37f47352, fqn: ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-policy-allow-all-24140970']
2024-08-26 17:12:12,983 - INFO - VN ctest-vn-90218824 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 17:12:12,983 - DEBUG - Verifying the vn in opserver
2024-08-26 17:12:12,983 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824 virtual network link through opserver 10.0.0.28
2024-08-26 17:12:12,983 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-26 17:12:13,280 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-26 17:12:13,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824?flat'}
2024-08-26 17:12:13,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-90218824 is found in opserver
2024-08-26 17:12:13,354 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 17:12:13,359 - DEBUG - VRF ids for VN ctest-vn-90218824: {}
2024-08-26 17:12:13,359 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-26 17:12:13,365 - DEBUG - Requesting: http://10.0.0.28:8082/domain/213d3b61-55cb-4554-8935-a9cac2a5f740
2024-08-26 17:12:13,377 - DEBUG - Requesting: http://10.0.0.28:8082/project/25301914-95ed-4c2c-8bc6-24fd88f2c5c4
2024-08-26 17:12:13,449 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,462 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,472 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d5ce6988-9133-4d49-80fc-eb9e65d1c87a
2024-08-26 17:12:13,480 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d5ce6988-9133-4d49-80fc-eb9e65d1c87a
2024-08-26 17:12:13,489 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/100bc8a2-ee41-46fd-a2d3-771e3de7ed67
2024-08-26 17:12:13,498 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 17:12:13,498 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,507 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d5ce6988-9133-4d49-80fc-eb9e65d1c87a
2024-08-26 17:12:13,522 - INFO - Verified VN network id 10 for VN 7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,522 - INFO - Verifications in API Server for VN ctest-vn-06041027 passed
2024-08-26 17:12:13,522 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,531 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d5ce6988-9133-4d49-80fc-eb9e65d1c87a
2024-08-26 17:12:13,539 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/d5ce6988-9133-4d49-80fc-eb9e65d1c87a
2024-08-26 17:12:13,547 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/100bc8a2-ee41-46fd-a2d3-771e3de7ed67
2024-08-26 17:12:13,560 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-06041027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-41936870', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8728518904097816967', 'uuid-lslong': '9390557126911072345'}, 'enable': 'true', 'created': '2024-08-26T17:12:10', 'last-modified': '2024-08-26T17:12:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.398097'}
2024-08-26 17:12:13,566 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-26 17:12:13,566 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06041027 passed
2024-08-26 17:12:13,566 - DEBUG - ====Verifying policy data for ctest-vn-06041027 in API_Server ======
2024-08-26 17:12:13,566 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-08-26 17:12:13,572 - DEBUG - Requesting: http://10.0.0.28:8082/domain/213d3b61-55cb-4554-8935-a9cac2a5f740
2024-08-26 17:12:13,584 - DEBUG - Requesting: http://10.0.0.28:8082/project/25301914-95ed-4c2c-8bc6-24fd88f2c5c4
2024-08-26 17:12:13,654 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/7921edb2-9608-4187-8251-f5f4208c1859
2024-08-26 17:12:13,663 - DEBUG - ==>Verifying data for policy with id: 80cb4634-1d84-4d85-a642-719d37f47352, fqn: ['default-domain', 'ctest-TestBasicPolicy-41936870', 'ctest-policy-allow-all-24140970']
2024-08-26 17:12:13,663 - INFO - VN ctest-vn-06041027 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-26 17:12:13,663 - DEBUG - Verifying the vn in opserver
2024-08-26 17:12:13,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-06041027 virtual network link through opserver 10.0.0.28
2024-08-26 17:12:13,663 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-08-26 17:12:13,674 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-06041027', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-06041027?flat'}
2024-08-26 17:12:13,674 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-41936870:ctest-vn-06041027 is found in opserver
2024-08-26 17:12:13,685 - DEBUG - Do not have enough data to verify VN in agent
2024-08-26 17:12:13,691 - DEBUG - VRF ids for VN ctest-vn-06041027: {}
2024-08-26 17:12:13,745 - DEBUG - Services list from nova: [