2024-09-03 17:10:37,449 - INFO - Domain Default found not creating
2024-09-03 17:10:37,599 - INFO - Project ctest-TestBasicPolicy-88803225 not found, creating it
2024-09-03 17:10:38,048 - INFO - Created Project:ctest-TestBasicPolicy-88803225, ID : c85f9ab5-df3f-401d-a715-498f0bf59bb1
2024-09-03 17:10:39,611 - INFO - ================================================================================
2024-09-03 17:10:39,611 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-03 17:10:39,611 - 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-03 17:10:39,869 - DEBUG - Nothing to compare xmpp stats {'10.0.0.17': {'10.20.0.17': '0'}} with
2024-09-03 17:10:39,869 - INFO - Initial checks done. Running the testcase now
2024-09-03 17:10:39,869 - INFO -
2024-09-03 17:10:40,424 - DEBUG - Response for create_network : {'network': {'id': 'f269db55-c462-4387-b833-ae4961b75f24', 'name': 'ctest-vn-65697714', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-vn-65697714'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:10:40,638 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b87881ea-5551-4a0f-bfb2-5fde356c29d0', 'name': '', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'network_id': 'f269db55-c462-4387-b833-ae4961b75f24', 'ip_version': 4, 'cidr': '81.9.181.0/26', 'allocation_pools': [{'start': '81.9.181.2', 'end': '81.9.181.62'}], 'gateway_ip': '81.9.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.9.181.2', 'tags': [], 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1'}}
2024-09-03 17:10:40,659 - INFO - Created VN ctest-vn-65697714
2024-09-03 17:10:40,711 - DEBUG - VN ctest-vn-65697714 UUID is f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:40,991 - DEBUG - Response for create_network : {'network': {'id': 'd3caae88-754b-47f4-b952-8c0ff4101cbe', 'name': 'ctest-vn-50722007', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-vn-50722007'], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:10:41,186 - DEBUG - Response for create_subnet : {'subnet': {'id': '2299157e-5a0c-4a3a-8cab-7629056c588c', 'name': '', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'network_id': 'd3caae88-754b-47f4-b952-8c0ff4101cbe', 'ip_version': 4, 'cidr': '211.169.161.192/26', 'allocation_pools': [{'start': '211.169.161.194', 'end': '211.169.161.254'}], 'gateway_ip': '211.169.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.169.161.194', 'tags': [], 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1'}}
2024-09-03 17:10:41,204 - INFO - Created VN ctest-vn-50722007
2024-09-03 17:10:41,255 - DEBUG - VN ctest-vn-50722007 UUID is d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:41,403 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714, 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-88803225:ctest-vn-50722007, 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-03 17:10:41,699 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f269db55-c462-4387-b833-ae4961b75f24', 'name': 'ctest-vn-65697714', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b87881ea-5551-4a0f-bfb2-5fde356c29d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-vn-65697714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-policy-allow-all-51005620']], 'subnet_ipam': [{'subnet_cidr': '81.9.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:10:41,939 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3caae88-754b-47f4-b952-8c0ff4101cbe', 'name': 'ctest-vn-50722007', 'tenant_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'project_id': 'c85f9ab5df3f401da715498f0bf59bb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2299157e-5a0c-4a3a-8cab-7629056c588c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-vn-50722007'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-policy-allow-all-51005620']], 'subnet_ipam': [{'subnet_cidr': '211.169.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-03 17:10:42,099 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-03 17:10:42,396 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-03 17:10:42,426 - DEBUG - Requesting: http://10.0.0.17:8082/domain/976809cf-3c4c-4166-a465-10b2e2220ba2
2024-09-03 17:10:42,439 - DEBUG - Requesting: http://10.0.0.17:8082/project/c85f9ab5-df3f-401d-a715-498f0bf59bb1
2024-09-03 17:10:42,506 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,516 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,523 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc35dd6f-d0c3-474d-b086-cad523456a1a
2024-09-03 17:10:42,530 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc35dd6f-d0c3-474d-b086-cad523456a1a
2024-09-03 17:10:42,537 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e3db4e6f-a048-4b84-b134-46653dc907a9
2024-09-03 17:10:42,543 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 17:10:42,543 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,552 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc35dd6f-d0c3-474d-b086-cad523456a1a
2024-09-03 17:10:42,567 - INFO - Verified VN network id 8 for VN f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,567 - INFO - Verifications in API Server for VN ctest-vn-65697714 passed
2024-09-03 17:10:42,567 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,576 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc35dd6f-d0c3-474d-b086-cad523456a1a
2024-09-03 17:10:42,582 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/fc35dd6f-d0c3-474d-b086-cad523456a1a
2024-09-03 17:10:42,589 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/e3db4e6f-a048-4b84-b134-46653dc907a9
2024-09-03 17:10:42,601 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88803225', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17467733791146656647', 'uuid-lslong': '13273144156986236708'}, 'enable': 'true', 'created': '2024-09-03T17:10:40', 'last-modified': '2024-09-03T17:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.925034'}
2024-09-03 17:10:42,607 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-03 17:10:42,607 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65697714 passed
2024-09-03 17:10:42,607 - DEBUG - ====Verifying policy data for ctest-vn-65697714 in API_Server ======
2024-09-03 17:10:42,607 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-03 17:10:42,613 - DEBUG - Requesting: http://10.0.0.17:8082/domain/976809cf-3c4c-4166-a465-10b2e2220ba2
2024-09-03 17:10:42,624 - DEBUG - Requesting: http://10.0.0.17:8082/project/c85f9ab5-df3f-401d-a715-498f0bf59bb1
2024-09-03 17:10:42,689 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/f269db55-c462-4387-b833-ae4961b75f24
2024-09-03 17:10:42,697 - DEBUG - ==>Verifying data for policy with id: 5eff55b2-873d-4a7c-b41d-17c2b0f18142, fqn: ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-policy-allow-all-51005620']
2024-09-03 17:10:42,697 - INFO - VN ctest-vn-65697714 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 17:10:42,697 - DEBUG - Verifying the vn in opserver
2024-09-03 17:10:42,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714 virtual network link through opserver 10.0.0.17
2024-09-03 17:10:42,697 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-03 17:10:42,990 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-03 17:10:43,055 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714?flat'}
2024-09-03 17:10:43,055 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-65697714 is found in opserver
2024-09-03 17:10:43,067 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 17:10:43,072 - DEBUG - VRF ids for VN ctest-vn-65697714: {}
2024-09-03 17:10:43,072 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-03 17:10:43,079 - DEBUG - Requesting: http://10.0.0.17:8082/domain/976809cf-3c4c-4166-a465-10b2e2220ba2
2024-09-03 17:10:43,094 - DEBUG - Requesting: http://10.0.0.17:8082/project/c85f9ab5-df3f-401d-a715-498f0bf59bb1
2024-09-03 17:10:43,165 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,175 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,183 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/69b4d104-7746-4ada-97c0-ccfa63569dff
2024-09-03 17:10:43,189 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/69b4d104-7746-4ada-97c0-ccfa63569dff
2024-09-03 17:10:43,196 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7cb5f18e-2da4-4883-8232-335b4ce08b70
2024-09-03 17:10:43,202 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 17:10:43,202 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,209 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/69b4d104-7746-4ada-97c0-ccfa63569dff
2024-09-03 17:10:43,219 - INFO - Verified VN network id 9 for VN d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,219 - INFO - Verifications in API Server for VN ctest-vn-50722007 passed
2024-09-03 17:10:43,219 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,228 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/69b4d104-7746-4ada-97c0-ccfa63569dff
2024-09-03 17:10:43,234 - DEBUG - Requesting: http://10.0.0.17:8082/routing-instance/69b4d104-7746-4ada-97c0-ccfa63569dff
2024-09-03 17:10:43,241 - DEBUG - Requesting: http://10.0.0.17:8082/route-target/7cb5f18e-2da4-4883-8232-335b4ce08b70
2024-09-03 17:10:43,253 - DEBUG - Control-node 10.0.0.17 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-50722007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-88803225', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15261202188405000180', 'uuid-lslong': '13353889845254036670'}, 'enable': 'true', 'created': '2024-09-03T17:10:40', 'last-modified': '2024-09-03T17:10:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.343469'}
2024-09-03 17:10:43,260 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-03 17:10:43,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50722007 passed
2024-09-03 17:10:43,260 - DEBUG - ====Verifying policy data for ctest-vn-50722007 in API_Server ======
2024-09-03 17:10:43,260 - DEBUG - Requesting: http://10.0.0.17:8082/domains
2024-09-03 17:10:43,266 - DEBUG - Requesting: http://10.0.0.17:8082/domain/976809cf-3c4c-4166-a465-10b2e2220ba2
2024-09-03 17:10:43,277 - DEBUG - Requesting: http://10.0.0.17:8082/project/c85f9ab5-df3f-401d-a715-498f0bf59bb1
2024-09-03 17:10:43,344 - DEBUG - Requesting: http://10.0.0.17:8082/virtual-network/d3caae88-754b-47f4-b952-8c0ff4101cbe
2024-09-03 17:10:43,353 - DEBUG - ==>Verifying data for policy with id: 5eff55b2-873d-4a7c-b41d-17c2b0f18142, fqn: ['default-domain', 'ctest-TestBasicPolicy-88803225', 'ctest-policy-allow-all-51005620']
2024-09-03 17:10:43,353 - INFO - VN ctest-vn-50722007 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-03 17:10:43,353 - DEBUG - Verifying the vn in opserver
2024-09-03 17:10:43,353 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-50722007 virtual network link through opserver 10.0.0.17
2024-09-03 17:10:43,353 - DEBUG - Requesting: http://10.0.0.17:8081/analytics/uves/virtual-networks
2024-09-03 17:10:43,364 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-50722007', 'href': 'http://10.0.0.17:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-50722007?flat'}
2024-09-03 17:10:43,364 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-88803225:ctest-vn-50722007 is found in opserver
2024-09-03 17:10:43,375 - DEBUG - Do not have enough data to verify VN in agent
2024-09-03 17:10:43,380 - DEBUG - VRF ids for VN ctest-vn-50722007: {}
2024-09-03 17:10:43,431 - DEBUG - Services list from nova: [