2024-09-17 20:01:38,712 - INFO - Domain Default found not creating
2024-09-17 20:01:38,858 - INFO - Project ctest-TestBasicPolicy-68314587 not found, creating it
2024-09-17 20:01:39,317 - INFO - Created Project:ctest-TestBasicPolicy-68314587, ID : 1afe8abb-b6c9-48dc-9d86-93df805c6d08
2024-09-17 20:01:40,772 - INFO - ================================================================================
2024-09-17 20:01:40,772 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 20:01:40,772 - 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-09-17 20:01:41,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.31': '0'}} with
2024-09-17 20:01:41,026 - INFO - Initial checks done. Running the testcase now
2024-09-17 20:01:41,026 - INFO -
2024-09-17 20:01:41,599 - DEBUG - Response for create_network : {'network': {'id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'name': 'ctest-vn-46842327', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-46842327'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:01:41,782 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca166c6d-9e3f-4a9e-b5cd-a796ff9c6fe9', 'name': '', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'network_id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'ip_version': 4, 'cidr': '197.30.104.128/26', 'allocation_pools': [{'start': '197.30.104.130', 'end': '197.30.104.190'}], 'gateway_ip': '197.30.104.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.30.104.130', 'tags': [], 'project_id': '1afe8abbb6c948dc9d8693df805c6d08'}}
2024-09-17 20:01:41,800 - INFO - Created VN ctest-vn-46842327
2024-09-17 20:01:41,856 - DEBUG - VN ctest-vn-46842327 UUID is 8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:42,159 - DEBUG - Response for create_network : {'network': {'id': '0983c623-d966-4668-b753-d8c832d44fbe', 'name': 'ctest-vn-97683350', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-97683350'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:01:42,383 - DEBUG - Response for create_subnet : {'subnet': {'id': '2701c5cb-7862-47b0-8582-40478a57cb63', 'name': '', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'network_id': '0983c623-d966-4668-b753-d8c832d44fbe', 'ip_version': 4, 'cidr': '187.244.233.128/26', 'allocation_pools': [{'start': '187.244.233.130', 'end': '187.244.233.190'}], 'gateway_ip': '187.244.233.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.244.233.130', 'tags': [], 'project_id': '1afe8abbb6c948dc9d8693df805c6d08'}}
2024-09-17 20:01:42,400 - INFO - Created VN ctest-vn-97683350
2024-09-17 20:01:42,460 - DEBUG - VN ctest-vn-97683350 UUID is 0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:42,675 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327, 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-68314587:ctest-vn-97683350, 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-09-17 20:01:43,190 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8a4c3341-583e-4032-a0e1-7af40b0599b3', 'name': 'ctest-vn-46842327', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca166c6d-9e3f-4a9e-b5cd-a796ff9c6fe9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-46842327'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']], 'subnet_ipam': [{'subnet_cidr': '197.30.104.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:01:43,461 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0983c623-d966-4668-b753-d8c832d44fbe', 'name': 'ctest-vn-97683350', 'tenant_id': '1afe8abbb6c948dc9d8693df805c6d08', 'project_id': '1afe8abbb6c948dc9d8693df805c6d08', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2701c5cb-7862-47b0-8582-40478a57cb63'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-vn-97683350'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']], 'subnet_ipam': [{'subnet_cidr': '187.244.233.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 20:01:43,612 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-17 20:01:43,909 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-17 20:01:43,937 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941
2024-09-17 20:01:43,952 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08
2024-09-17 20:01:44,031 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,045 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,057 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687
2024-09-17 20:01:44,065 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687
2024-09-17 20:01:44,072 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7da690ce-b3d6-4e55-bd48-be2d44114185
2024-09-17 20:01:44,079 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:01:44,079 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,091 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687
2024-09-17 20:01:44,108 - INFO - Verified VN network id 9 for VN 8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,108 - INFO - Verifications in API Server for VN ctest-vn-46842327 passed
2024-09-17 20:01:44,108 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,121 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687
2024-09-17 20:01:44,128 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/4e99aba3-70ce-4754-92ac-6fc2105ba687
2024-09-17 20:01:44,135 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/7da690ce-b3d6-4e55-bd48-be2d44114185
2024-09-17 20:01:44,148 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68314587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9965396431210430514', 'uuid-lslong': '11592682104403892659'}, 'enable': 'true', 'created': '2024-09-17T20:01:41', 'last-modified': '2024-09-17T20:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982819'}
2024-09-17 20:01:44,154 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 20:01:44,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46842327 passed
2024-09-17 20:01:44,154 - DEBUG - ====Verifying policy data for ctest-vn-46842327 in API_Server ======
2024-09-17 20:01:44,154 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-17 20:01:44,159 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941
2024-09-17 20:01:44,172 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08
2024-09-17 20:01:44,252 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8a4c3341-583e-4032-a0e1-7af40b0599b3
2024-09-17 20:01:44,268 - DEBUG - ==>Verifying data for policy with id: de24aaa8-a647-4b55-91b0-5fb671c98777, fqn: ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']
2024-09-17 20:01:44,268 - INFO - VN ctest-vn-46842327 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:01:44,268 - DEBUG - Verifying the vn in opserver
2024-09-17 20:01:44,268 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327 virtual network link through opserver 10.0.0.45
2024-09-17 20:01:44,268 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-17 20:01:44,561 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-17 20:01:44,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327?flat'}
2024-09-17 20:01:44,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-46842327 is found in opserver
2024-09-17 20:01:44,630 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:01:44,635 - DEBUG - VRF ids for VN ctest-vn-46842327: {}
2024-09-17 20:01:44,635 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-17 20:01:44,641 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941
2024-09-17 20:01:44,653 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08
2024-09-17 20:01:44,727 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,742 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,754 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3
2024-09-17 20:01:44,762 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3
2024-09-17 20:01:44,769 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/0fb850df-08f9-494f-a897-c67e3144dc46
2024-09-17 20:01:44,775 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:01:44,775 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,788 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3
2024-09-17 20:01:44,807 - INFO - Verified VN network id 10 for VN 0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,807 - INFO - Verifications in API Server for VN ctest-vn-97683350 passed
2024-09-17 20:01:44,807 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,820 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3
2024-09-17 20:01:44,827 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/f7ba7468-49b0-4564-8f64-a37d1b9829a3
2024-09-17 20:01:44,835 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/0fb850df-08f9-494f-a897-c67e3144dc46
2024-09-17 20:01:44,846 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-68314587', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '685609425563960936', 'uuid-lslong': '13210140486365630398'}, 'enable': 'true', 'created': '2024-09-17T20:01:42', 'last-modified': '2024-09-17T20:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453389'}
2024-09-17 20:01:44,853 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 20:01:44,853 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97683350 passed
2024-09-17 20:01:44,853 - DEBUG - ====Verifying policy data for ctest-vn-97683350 in API_Server ======
2024-09-17 20:01:44,853 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-09-17 20:01:44,858 - DEBUG - Requesting: http://10.0.0.45:8082/domain/0950d80c-2f57-4878-ae76-d8d35b2ce941
2024-09-17 20:01:44,870 - DEBUG - Requesting: http://10.0.0.45:8082/project/1afe8abb-b6c9-48dc-9d86-93df805c6d08
2024-09-17 20:01:44,948 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/0983c623-d966-4668-b753-d8c832d44fbe
2024-09-17 20:01:44,970 - DEBUG - ==>Verifying data for policy with id: de24aaa8-a647-4b55-91b0-5fb671c98777, fqn: ['default-domain', 'ctest-TestBasicPolicy-68314587', 'ctest-policy-allow-all-98990797']
2024-09-17 20:01:44,971 - INFO - VN ctest-vn-97683350 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 20:01:44,971 - DEBUG - Verifying the vn in opserver
2024-09-17 20:01:44,971 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350 virtual network link through opserver 10.0.0.45
2024-09-17 20:01:44,971 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-09-17 20:01:44,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350?flat'}
2024-09-17 20:01:44,983 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-68314587:ctest-vn-97683350 is found in opserver
2024-09-17 20:01:44,994 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 20:01:44,999 - DEBUG - VRF ids for VN ctest-vn-97683350: {}
2024-09-17 20:01:45,061 - DEBUG - Services list from nova: [