2024-09-06 07:31:35,415 - INFO - Domain Default found not creating
2024-09-06 07:31:35,668 - INFO - Project ctest-TestBasicPolicy-30978643 not found, creating it
2024-09-06 07:31:36,127 - INFO - Created Project:ctest-TestBasicPolicy-30978643, ID : 36d418cf-c406-4c28-8f13-c006f020c21f
2024-09-06 07:31:37,638 - INFO - ================================================================================
2024-09-06 07:31:37,639 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-06 07:31:37,639 - 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-06 07:31:37,895 - DEBUG - Nothing to compare xmpp stats {'10.0.0.32': {'10.20.0.28': '0'}} with
2024-09-06 07:31:37,895 - INFO - Initial checks done. Running the testcase now
2024-09-06 07:31:37,895 - INFO -
2024-09-06 07:31:38,469 - DEBUG - Response for create_network : {'network': {'id': '2cacc989-250f-4ef9-aafb-8264e9875a00', 'name': 'ctest-vn-92043195', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'project_id': '36d418cfc4064c288f13c006f020c21f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-vn-92043195'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 07:31:38,743 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a31322a4-d88e-4e54-b18b-925211dd4fc6', 'name': '', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'network_id': '2cacc989-250f-4ef9-aafb-8264e9875a00', 'ip_version': 4, 'cidr': '107.42.79.64/26', 'allocation_pools': [{'start': '107.42.79.66', 'end': '107.42.79.126'}], 'gateway_ip': '107.42.79.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.42.79.66', 'tags': [], 'project_id': '36d418cfc4064c288f13c006f020c21f'}}
2024-09-06 07:31:38,765 - INFO - Created VN ctest-vn-92043195
2024-09-06 07:31:38,817 - DEBUG - VN ctest-vn-92043195 UUID is 2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:39,127 - DEBUG - Response for create_network : {'network': {'id': '8107bc23-0529-48c9-b220-8151e8ab8876', 'name': 'ctest-vn-03558847', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'project_id': '36d418cfc4064c288f13c006f020c21f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-vn-03558847'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 07:31:39,349 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b16119b-6418-4cf0-b76f-d9dab086df13', 'name': '', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'network_id': '8107bc23-0529-48c9-b220-8151e8ab8876', 'ip_version': 4, 'cidr': '56.146.89.192/26', 'allocation_pools': [{'start': '56.146.89.194', 'end': '56.146.89.254'}], 'gateway_ip': '56.146.89.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.146.89.194', 'tags': [], 'project_id': '36d418cfc4064c288f13c006f020c21f'}}
2024-09-06 07:31:39,370 - INFO - Created VN ctest-vn-03558847
2024-09-06 07:31:39,421 - DEBUG - VN ctest-vn-03558847 UUID is 8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:39,535 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195, 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-30978643:ctest-vn-03558847, 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-06 07:31:39,844 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2cacc989-250f-4ef9-aafb-8264e9875a00', 'name': 'ctest-vn-92043195', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'project_id': '36d418cfc4064c288f13c006f020c21f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a31322a4-d88e-4e54-b18b-925211dd4fc6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-vn-92043195'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-policy-allow-all-22624316']], 'subnet_ipam': [{'subnet_cidr': '107.42.79.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 07:31:40,132 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8107bc23-0529-48c9-b220-8151e8ab8876', 'name': 'ctest-vn-03558847', 'tenant_id': '36d418cfc4064c288f13c006f020c21f', 'project_id': '36d418cfc4064c288f13c006f020c21f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b16119b-6418-4cf0-b76f-d9dab086df13'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-vn-03558847'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-policy-allow-all-22624316']], 'subnet_ipam': [{'subnet_cidr': '56.146.89.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 07:31:40,281 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-06 07:31:40,581 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-06 07:31:40,612 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5a162ab8-7247-45da-b7c2-506ce8c71b18
2024-09-06 07:31:40,626 - DEBUG - Requesting: http://10.0.0.32:8082/project/36d418cf-c406-4c28-8f13-c006f020c21f
2024-09-06 07:31:40,696 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,706 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,715 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/54cab470-b7e5-4de9-a427-ed4ad2e4e013
2024-09-06 07:31:40,722 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/54cab470-b7e5-4de9-a427-ed4ad2e4e013
2024-09-06 07:31:40,730 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/08eac391-9198-40bc-96d9-76e999f34334
2024-09-06 07:31:40,736 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 07:31:40,736 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,744 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/54cab470-b7e5-4de9-a427-ed4ad2e4e013
2024-09-06 07:31:40,756 - INFO - Verified VN network id 8 for VN 2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,757 - INFO - Verifications in API Server for VN ctest-vn-92043195 passed
2024-09-06 07:31:40,757 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,765 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/54cab470-b7e5-4de9-a427-ed4ad2e4e013
2024-09-06 07:31:40,772 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/54cab470-b7e5-4de9-a427-ed4ad2e4e013
2024-09-06 07:31:40,778 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/08eac391-9198-40bc-96d9-76e999f34334
2024-09-06 07:31:40,790 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30978643', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3219169424532524793', 'uuid-lslong': '12320584575528425984'}, 'enable': 'true', 'created': '2024-09-06T07:31:38', 'last-modified': '2024-09-06T07:31:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974964'}
2024-09-06 07:31:40,797 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 07:31:40,797 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92043195 passed
2024-09-06 07:31:40,797 - DEBUG - ====Verifying policy data for ctest-vn-92043195 in API_Server ======
2024-09-06 07:31:40,797 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-06 07:31:40,803 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5a162ab8-7247-45da-b7c2-506ce8c71b18
2024-09-06 07:31:40,815 - DEBUG - Requesting: http://10.0.0.32:8082/project/36d418cf-c406-4c28-8f13-c006f020c21f
2024-09-06 07:31:40,886 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/2cacc989-250f-4ef9-aafb-8264e9875a00
2024-09-06 07:31:40,895 - DEBUG - ==>Verifying data for policy with id: 58add6aa-0c7f-4c1c-87c4-20fbb90cbb1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-policy-allow-all-22624316']
2024-09-06 07:31:40,895 - INFO - VN ctest-vn-92043195 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 07:31:40,895 - DEBUG - Verifying the vn in opserver
2024-09-06 07:31:40,895 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195 virtual network link through opserver 10.0.0.32
2024-09-06 07:31:40,895 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-06 07:31:41,191 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-06 07:31:41,253 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195?flat'}
2024-09-06 07:31:41,253 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-92043195 is found in opserver
2024-09-06 07:31:41,265 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 07:31:41,271 - DEBUG - VRF ids for VN ctest-vn-92043195: {}
2024-09-06 07:31:41,271 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-06 07:31:41,277 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5a162ab8-7247-45da-b7c2-506ce8c71b18
2024-09-06 07:31:41,289 - DEBUG - Requesting: http://10.0.0.32:8082/project/36d418cf-c406-4c28-8f13-c006f020c21f
2024-09-06 07:31:41,385 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,396 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,405 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7f462d4e-d3c0-433b-b47c-594f0a6a465f
2024-09-06 07:31:41,412 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7f462d4e-d3c0-433b-b47c-594f0a6a465f
2024-09-06 07:31:41,419 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/4068637d-c88b-4b46-a02f-94d1865fa96c
2024-09-06 07:31:41,426 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 07:31:41,426 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,434 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7f462d4e-d3c0-433b-b47c-594f0a6a465f
2024-09-06 07:31:41,446 - INFO - Verified VN network id 9 for VN 8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,446 - INFO - Verifications in API Server for VN ctest-vn-03558847 passed
2024-09-06 07:31:41,446 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,455 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7f462d4e-d3c0-433b-b47c-594f0a6a465f
2024-09-06 07:31:41,463 - DEBUG - Requesting: http://10.0.0.32:8082/routing-instance/7f462d4e-d3c0-433b-b47c-594f0a6a465f
2024-09-06 07:31:41,469 - DEBUG - Requesting: http://10.0.0.32:8082/route-target/4068637d-c88b-4b46-a02f-94d1865fa96c
2024-09-06 07:31:41,481 - DEBUG - Control-node 10.0.0.32 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-03558847', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30978643', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9297606814326147273', 'uuid-lslong': '12835401126801803382'}, 'enable': 'true', 'created': '2024-09-06T07:31:39', 'last-modified': '2024-09-06T07:31:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.418639'}
2024-09-06 07:31:41,487 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 07:31:41,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03558847 passed
2024-09-06 07:31:41,488 - DEBUG - ====Verifying policy data for ctest-vn-03558847 in API_Server ======
2024-09-06 07:31:41,488 - DEBUG - Requesting: http://10.0.0.32:8082/domains
2024-09-06 07:31:41,494 - DEBUG - Requesting: http://10.0.0.32:8082/domain/5a162ab8-7247-45da-b7c2-506ce8c71b18
2024-09-06 07:31:41,507 - DEBUG - Requesting: http://10.0.0.32:8082/project/36d418cf-c406-4c28-8f13-c006f020c21f
2024-09-06 07:31:41,578 - DEBUG - Requesting: http://10.0.0.32:8082/virtual-network/8107bc23-0529-48c9-b220-8151e8ab8876
2024-09-06 07:31:41,587 - DEBUG - ==>Verifying data for policy with id: 58add6aa-0c7f-4c1c-87c4-20fbb90cbb1c, fqn: ['default-domain', 'ctest-TestBasicPolicy-30978643', 'ctest-policy-allow-all-22624316']
2024-09-06 07:31:41,587 - INFO - VN ctest-vn-03558847 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 07:31:41,587 - DEBUG - Verifying the vn in opserver
2024-09-06 07:31:41,587 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-03558847 virtual network link through opserver 10.0.0.32
2024-09-06 07:31:41,587 - DEBUG - Requesting: http://10.0.0.32:8081/analytics/uves/virtual-networks
2024-09-06 07:31:41,598 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-03558847', 'href': 'http://10.0.0.32:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-03558847?flat'}
2024-09-06 07:31:41,598 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30978643:ctest-vn-03558847 is found in opserver
2024-09-06 07:31:41,609 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 07:31:41,614 - DEBUG - VRF ids for VN ctest-vn-03558847: {}
2024-09-06 07:31:41,670 - DEBUG - Services list from nova: [