2024-11-10 14:58:27,265 - INFO - Domain Default found not creating
2024-11-10 14:58:27,441 - INFO - Project ctest-TestBasicPolicy-61452364 not found, creating it
2024-11-10 14:58:27,947 - INFO - Created Project:ctest-TestBasicPolicy-61452364, ID : f18b2fc8-da6e-4d91-af17-e219d0497dbf
2024-11-10 14:58:29,513 - INFO - ================================================================================
2024-11-10 14:58:29,513 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-10 14:58:29,513 - 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-10 14:58:29,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.14': '0'}} with
2024-11-10 14:58:29,786 - INFO - Initial checks done. Running the testcase now
2024-11-10 14:58:29,786 - INFO -
2024-11-10 14:58:30,372 - DEBUG - Response for create_network : {'network': {'id': '8b6d0f0e-4e2e-45e2-818b-47f63aa885e3', 'name': 'ctest-vn-95051949', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-vn-95051949'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 14:58:30,579 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2a7a3bd-128f-46a0-b870-939611588012', 'name': '', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'network_id': '8b6d0f0e-4e2e-45e2-818b-47f63aa885e3', 'ip_version': 4, 'cidr': '191.9.132.128/26', 'allocation_pools': [{'start': '191.9.132.130', 'end': '191.9.132.190'}], 'gateway_ip': '191.9.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.9.132.130', 'tags': [], 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf'}}
2024-11-10 14:58:30,599 - INFO - Created VN ctest-vn-95051949
2024-11-10 14:58:30,658 - DEBUG - VN ctest-vn-95051949 UUID is 8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:30,975 - DEBUG - Response for create_network : {'network': {'id': '403f6288-86a4-4e4c-a5b1-5c555da3dcb0', 'name': 'ctest-vn-53727508', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-vn-53727508'], 'port_security_enabled': True, 'description': ''}}
2024-11-10 14:58:31,187 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7712a64-03d0-4d57-be2e-658e63010fef', 'name': '', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'network_id': '403f6288-86a4-4e4c-a5b1-5c555da3dcb0', 'ip_version': 4, 'cidr': '215.245.203.0/26', 'allocation_pools': [{'start': '215.245.203.2', 'end': '215.245.203.62'}], 'gateway_ip': '215.245.203.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.245.203.2', 'tags': [], 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf'}}
2024-11-10 14:58:31,207 - INFO - Created VN ctest-vn-53727508
2024-11-10 14:58:31,266 - DEBUG - VN ctest-vn-53727508 UUID is 403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:31,409 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949, 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-61452364:ctest-vn-53727508, 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-10 14:58:31,767 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8b6d0f0e-4e2e-45e2-818b-47f63aa885e3', 'name': 'ctest-vn-95051949', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b2a7a3bd-128f-46a0-b870-939611588012'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-vn-95051949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-policy-allow-all-77076599']], 'subnet_ipam': [{'subnet_cidr': '191.9.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 14:58:32,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '403f6288-86a4-4e4c-a5b1-5c555da3dcb0', 'name': 'ctest-vn-53727508', 'tenant_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'project_id': 'f18b2fc8da6e4d91af17e219d0497dbf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7712a64-03d0-4d57-be2e-658e63010fef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-vn-53727508'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-policy-allow-all-77076599']], 'subnet_ipam': [{'subnet_cidr': '215.245.203.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-10 14:58:32,190 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-10 14:58:32,493 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-10 14:58:32,527 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c5949d73-9f86-492a-89a9-de82e7ae9a7d
2024-11-10 14:58:32,543 - DEBUG - Requesting: http://10.0.0.24:8082/project/f18b2fc8-da6e-4d91-af17-e219d0497dbf
2024-11-10 14:58:32,627 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,645 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,661 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9fe407b3-0265-4603-a36b-1203441f2278
2024-11-10 14:58:32,672 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9fe407b3-0265-4603-a36b-1203441f2278
2024-11-10 14:58:32,684 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f688027-c594-4ebe-8f4a-1f4a2fe7acc0
2024-11-10 14:58:32,693 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 14:58:32,693 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,707 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9fe407b3-0265-4603-a36b-1203441f2278
2024-11-10 14:58:32,729 - INFO - Verified VN network id 8 for VN 8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,729 - INFO - Verifications in API Server for VN ctest-vn-95051949 passed
2024-11-10 14:58:32,729 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,743 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9fe407b3-0265-4603-a36b-1203441f2278
2024-11-10 14:58:32,753 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/9fe407b3-0265-4603-a36b-1203441f2278
2024-11-10 14:58:32,762 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/4f688027-c594-4ebe-8f4a-1f4a2fe7acc0
2024-11-10 14:58:32,777 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61452364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10046702897849058786', 'uuid-lslong': '9334633775527134691'}, 'enable': 'true', 'created': '2024-11-10T14:58:30', 'last-modified': '2024-11-10T14:58:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.040038'}
2024-11-10 14:58:32,784 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-10 14:58:32,784 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95051949 passed
2024-11-10 14:58:32,784 - DEBUG - ====Verifying policy data for ctest-vn-95051949 in API_Server ======
2024-11-10 14:58:32,784 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-10 14:58:32,791 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c5949d73-9f86-492a-89a9-de82e7ae9a7d
2024-11-10 14:58:32,806 - DEBUG - Requesting: http://10.0.0.24:8082/project/f18b2fc8-da6e-4d91-af17-e219d0497dbf
2024-11-10 14:58:32,884 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/8b6d0f0e-4e2e-45e2-818b-47f63aa885e3
2024-11-10 14:58:32,900 - DEBUG - ==>Verifying data for policy with id: 229c2e68-2b55-4991-bdae-200e8624450d, fqn: ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-policy-allow-all-77076599']
2024-11-10 14:58:32,900 - INFO - VN ctest-vn-95051949 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 14:58:32,900 - DEBUG - Verifying the vn in opserver
2024-11-10 14:58:32,901 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949 virtual network link through opserver 10.0.0.24
2024-11-10 14:58:32,901 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-10 14:58:33,201 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-10 14:58:33,265 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949?flat'}
2024-11-10 14:58:33,265 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-95051949 is found in opserver
2024-11-10 14:58:33,276 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 14:58:33,281 - DEBUG - VRF ids for VN ctest-vn-95051949: {}
2024-11-10 14:58:33,282 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-10 14:58:33,288 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c5949d73-9f86-492a-89a9-de82e7ae9a7d
2024-11-10 14:58:33,303 - DEBUG - Requesting: http://10.0.0.24:8082/project/f18b2fc8-da6e-4d91-af17-e219d0497dbf
2024-11-10 14:58:33,382 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,399 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,413 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d59eff43-1fbd-4f5d-853a-a435a1356b94
2024-11-10 14:58:33,422 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d59eff43-1fbd-4f5d-853a-a435a1356b94
2024-11-10 14:58:33,431 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3d3794c1-8799-472f-9a4e-33d732eb3afd
2024-11-10 14:58:33,440 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 14:58:33,440 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,455 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d59eff43-1fbd-4f5d-853a-a435a1356b94
2024-11-10 14:58:33,478 - INFO - Verified VN network id 9 for VN 403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,478 - INFO - Verifications in API Server for VN ctest-vn-53727508 passed
2024-11-10 14:58:33,479 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,496 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d59eff43-1fbd-4f5d-853a-a435a1356b94
2024-11-10 14:58:33,506 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/d59eff43-1fbd-4f5d-853a-a435a1356b94
2024-11-10 14:58:33,518 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/3d3794c1-8799-472f-9a4e-33d732eb3afd
2024-11-10 14:58:33,534 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-53727508', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61452364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4629527280474148428', 'uuid-lslong': '11939425608848891056'}, 'enable': 'true', 'created': '2024-11-10T14:58:30', 'last-modified': '2024-11-10T14:58:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.535982'}
2024-11-10 14:58:33,541 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-10 14:58:33,541 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53727508 passed
2024-11-10 14:58:33,541 - DEBUG - ====Verifying policy data for ctest-vn-53727508 in API_Server ======
2024-11-10 14:58:33,542 - DEBUG - Requesting: http://10.0.0.24:8082/domains
2024-11-10 14:58:33,549 - DEBUG - Requesting: http://10.0.0.24:8082/domain/c5949d73-9f86-492a-89a9-de82e7ae9a7d
2024-11-10 14:58:33,564 - DEBUG - Requesting: http://10.0.0.24:8082/project/f18b2fc8-da6e-4d91-af17-e219d0497dbf
2024-11-10 14:58:33,651 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/403f6288-86a4-4e4c-a5b1-5c555da3dcb0
2024-11-10 14:58:33,668 - DEBUG - ==>Verifying data for policy with id: 229c2e68-2b55-4991-bdae-200e8624450d, fqn: ['default-domain', 'ctest-TestBasicPolicy-61452364', 'ctest-policy-allow-all-77076599']
2024-11-10 14:58:33,668 - INFO - VN ctest-vn-53727508 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-10 14:58:33,668 - DEBUG - Verifying the vn in opserver
2024-11-10 14:58:33,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-53727508 virtual network link through opserver 10.0.0.24
2024-11-10 14:58:33,668 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks
2024-11-10 14:58:33,683 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-53727508', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-53727508?flat'}
2024-11-10 14:58:33,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61452364:ctest-vn-53727508 is found in opserver
2024-11-10 14:58:33,696 - DEBUG - Do not have enough data to verify VN in agent
2024-11-10 14:58:33,701 - DEBUG - VRF ids for VN ctest-vn-53727508: {}
2024-11-10 14:58:33,761 - DEBUG - Services list from nova: [