2024-10-25 10:25:01,117 - INFO - Domain Default found not creating
2024-10-25 10:25:01,324 - INFO - Project ctest-TestBasicPolicy-60157155 not found, creating it
2024-10-25 10:25:01,864 - INFO - Created Project:ctest-TestBasicPolicy-60157155, ID : e979feb2-6fbb-488d-9b34-0b8427a324cb
2024-10-25 10:25:03,679 - INFO - ================================================================================
2024-10-25 10:25:03,679 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-25 10:25:03,679 - 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-10-25 10:25:03,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.10': '0'}} with
2024-10-25 10:25:03,951 - INFO - Initial checks done. Running the testcase now
2024-10-25 10:25:03,951 - INFO -
2024-10-25 10:25:04,657 - DEBUG - Response for create_network : {'network': {'id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'name': 'ctest-vn-23161512', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-23161512'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 10:25:04,869 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8075127-7e9a-4922-b4f3-f8bbf884be4c', 'name': '', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'network_id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'ip_version': 4, 'cidr': '107.241.28.64/26', 'allocation_pools': [{'start': '107.241.28.66', 'end': '107.241.28.126'}], 'gateway_ip': '107.241.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.241.28.66', 'tags': [], 'project_id': 'e979feb26fbb488d9b340b8427a324cb'}}
2024-10-25 10:25:04,895 - INFO - Created VN ctest-vn-23161512
2024-10-25 10:25:04,960 - DEBUG - VN ctest-vn-23161512 UUID is 7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:05,349 - DEBUG - Response for create_network : {'network': {'id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'name': 'ctest-vn-36642534', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-36642534'], 'port_security_enabled': True, 'description': ''}}
2024-10-25 10:25:05,534 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b07c28b1-9523-4255-a2e8-20842bbfccf6', 'name': '', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'network_id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'ip_version': 4, 'cidr': '184.5.54.128/26', 'allocation_pools': [{'start': '184.5.54.130', 'end': '184.5.54.190'}], 'gateway_ip': '184.5.54.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.5.54.130', 'tags': [], 'project_id': 'e979feb26fbb488d9b340b8427a324cb'}}
2024-10-25 10:25:05,557 - INFO - Created VN ctest-vn-36642534
2024-10-25 10:25:05,617 - DEBUG - VN ctest-vn-36642534 UUID is 265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:05,756 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512, 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-60157155:ctest-vn-36642534, 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-10-25 10:25:06,116 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a027fd1-36c4-4487-8a7f-ae1a1f770dfc', 'name': 'ctest-vn-23161512', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c8075127-7e9a-4922-b4f3-f8bbf884be4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-23161512'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']], 'subnet_ipam': [{'subnet_cidr': '107.241.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 10:25:06,390 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '265c15ce-5c74-4854-83af-caa84ceed6cb', 'name': 'ctest-vn-36642534', 'tenant_id': 'e979feb26fbb488d9b340b8427a324cb', 'project_id': 'e979feb26fbb488d9b340b8427a324cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b07c28b1-9523-4255-a2e8-20842bbfccf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-vn-36642534'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']], 'subnet_ipam': [{'subnet_cidr': '184.5.54.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-25 10:25:06,577 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-25 10:25:06,929 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-25 10:25:06,967 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd
2024-10-25 10:25:06,986 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb
2024-10-25 10:25:07,084 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,103 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,122 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4
2024-10-25 10:25:07,133 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4
2024-10-25 10:25:07,145 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/076bf8ef-8f06-42d0-b6da-d256cd331e82
2024-10-25 10:25:07,155 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 10:25:07,156 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,185 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4
2024-10-25 10:25:07,214 - INFO - Verified VN network id 7 for VN 7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,214 - INFO - Verifications in API Server for VN ctest-vn-23161512 passed
2024-10-25 10:25:07,214 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,234 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4
2024-10-25 10:25:07,246 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/5663bd1f-b1d8-4360-aaa7-caf9be8640b4
2024-10-25 10:25:07,256 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/076bf8ef-8f06-42d0-b6da-d256cd331e82
2024-10-25 10:25:07,273 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60157155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8791729959124354183', 'uuid-lslong': '9979886726496587260'}, 'enable': 'true', 'created': '2024-10-25T10:25:04', 'last-modified': '2024-10-25T10:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.196296'}
2024-10-25 10:25:07,283 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-25 10:25:07,283 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23161512 passed
2024-10-25 10:25:07,284 - DEBUG - ====Verifying policy data for ctest-vn-23161512 in API_Server ======
2024-10-25 10:25:07,284 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-25 10:25:07,292 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd
2024-10-25 10:25:07,310 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb
2024-10-25 10:25:07,396 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7a027fd1-36c4-4487-8a7f-ae1a1f770dfc
2024-10-25 10:25:07,413 - DEBUG - ==>Verifying data for policy with id: f474b5e9-607c-441b-91e6-afe77e4d33d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']
2024-10-25 10:25:07,413 - INFO - VN ctest-vn-23161512 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 10:25:07,413 - DEBUG - Verifying the vn in opserver
2024-10-25 10:25:07,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512 virtual network link through opserver 10.0.0.37
2024-10-25 10:25:07,413 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-25 10:25:07,760 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-25 10:25:07,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512?flat'}
2024-10-25 10:25:07,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-23161512 is found in opserver
2024-10-25 10:25:07,853 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 10:25:07,861 - DEBUG - VRF ids for VN ctest-vn-23161512: {}
2024-10-25 10:25:07,861 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-25 10:25:07,869 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd
2024-10-25 10:25:07,887 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb
2024-10-25 10:25:07,982 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,002 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,019 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603
2024-10-25 10:25:08,031 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603
2024-10-25 10:25:08,043 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d6b42fac-7be0-426c-acc0-c31d5415b2f4
2024-10-25 10:25:08,054 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 10:25:08,054 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,070 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603
2024-10-25 10:25:08,101 - INFO - Verified VN network id 8 for VN 265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,101 - INFO - Verifications in API Server for VN ctest-vn-36642534 passed
2024-10-25 10:25:08,101 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,127 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603
2024-10-25 10:25:08,141 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/242dd55c-5826-4635-b1e0-06a658bc4603
2024-10-25 10:25:08,152 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/d6b42fac-7be0-426c-acc0-c31d5415b2f4
2024-10-25 10:25:08,168 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60157155', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2764108247357212756', 'uuid-lslong': '9489025764086961867'}, 'enable': 'true', 'created': '2024-10-25T10:25:05', 'last-modified': '2024-10-25T10:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.806522'}
2024-10-25 10:25:08,177 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-25 10:25:08,177 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-36642534 passed
2024-10-25 10:25:08,177 - DEBUG - ====Verifying policy data for ctest-vn-36642534 in API_Server ======
2024-10-25 10:25:08,177 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-10-25 10:25:08,185 - DEBUG - Requesting: http://10.0.0.37:8082/domain/12a889b9-5e07-443a-8a27-77f0734807fd
2024-10-25 10:25:08,201 - DEBUG - Requesting: http://10.0.0.37:8082/project/e979feb2-6fbb-488d-9b34-0b8427a324cb
2024-10-25 10:25:08,297 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/265c15ce-5c74-4854-83af-caa84ceed6cb
2024-10-25 10:25:08,320 - DEBUG - ==>Verifying data for policy with id: f474b5e9-607c-441b-91e6-afe77e4d33d3, fqn: ['default-domain', 'ctest-TestBasicPolicy-60157155', 'ctest-policy-allow-all-13545743']
2024-10-25 10:25:08,320 - INFO - VN ctest-vn-36642534 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-25 10:25:08,320 - DEBUG - Verifying the vn in opserver
2024-10-25 10:25:08,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534 virtual network link through opserver 10.0.0.37
2024-10-25 10:25:08,321 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-10-25 10:25:08,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534?flat'}
2024-10-25 10:25:08,336 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60157155:ctest-vn-36642534 is found in opserver
2024-10-25 10:25:08,350 - DEBUG - Do not have enough data to verify VN in agent
2024-10-25 10:25:08,356 - DEBUG - VRF ids for VN ctest-vn-36642534: {}
2024-10-25 10:25:08,432 - DEBUG - Services list from nova: [