2024-11-07 09:25:29,318 - INFO - Domain Default found not creating
2024-11-07 09:25:29,492 - INFO - Project ctest-TestBasicPolicy-82181151 not found, creating it
2024-11-07 09:25:29,973 - INFO - Created Project:ctest-TestBasicPolicy-82181151, ID : c10dd580-7b3d-459a-b9fb-be0b5599dda2
2024-11-07 09:25:32,183 - INFO - ================================================================================
2024-11-07 09:25:32,183 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-07 09:25:32,184 - 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-07 09:25:32,440 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.8': '0'}} with
2024-11-07 09:25:32,441 - INFO - Initial checks done. Running the testcase now
2024-11-07 09:25:32,441 - INFO -
2024-11-07 09:25:33,027 - DEBUG - Response for create_network : {'network': {'id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'name': 'ctest-vn-88495179', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-88495179'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 09:25:33,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '746d16be-b6df-4c9e-981e-563f9f0431f2', 'name': '', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'network_id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'ip_version': 4, 'cidr': '213.133.145.0/26', 'allocation_pools': [{'start': '213.133.145.2', 'end': '213.133.145.62'}], 'gateway_ip': '213.133.145.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.133.145.2', 'tags': [], 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2'}}
2024-11-07 09:25:33,227 - INFO - Created VN ctest-vn-88495179
2024-11-07 09:25:33,283 - DEBUG - VN ctest-vn-88495179 UUID is e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:33,634 - DEBUG - Response for create_network : {'network': {'id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'name': 'ctest-vn-71471204', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-71471204'], 'port_security_enabled': True, 'description': ''}}
2024-11-07 09:25:33,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b65f79c7-d45d-48a4-9561-478244010475', 'name': '', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'network_id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'ip_version': 4, 'cidr': '197.181.236.64/26', 'allocation_pools': [{'start': '197.181.236.66', 'end': '197.181.236.126'}], 'gateway_ip': '197.181.236.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.181.236.66', 'tags': [], 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2'}}
2024-11-07 09:25:33,874 - INFO - Created VN ctest-vn-71471204
2024-11-07 09:25:33,931 - DEBUG - VN ctest-vn-71471204 UUID is b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:34,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179, 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-82181151:ctest-vn-71471204, 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-07 09:25:34,397 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1f06c74-6260-4ed7-9e4a-e3a39a2de73a', 'name': 'ctest-vn-88495179', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['746d16be-b6df-4c9e-981e-563f9f0431f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-88495179'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']], 'subnet_ipam': [{'subnet_cidr': '213.133.145.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 09:25:34,659 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b559fd15-5a0d-4f88-8030-7bb17987ea11', 'name': 'ctest-vn-71471204', 'tenant_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'project_id': 'c10dd5807b3d459ab9fbbe0b5599dda2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b65f79c7-d45d-48a4-9561-478244010475'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-vn-71471204'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']], 'subnet_ipam': [{'subnet_cidr': '197.181.236.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-07 09:25:34,814 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 09:25:35,117 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 09:25:35,147 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5
2024-11-07 09:25:35,165 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2
2024-11-07 09:25:35,250 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,266 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,279 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f
2024-11-07 09:25:35,288 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f
2024-11-07 09:25:35,297 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a417e495-d497-4cdb-bc64-da0b199e8fb6
2024-11-07 09:25:35,304 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 09:25:35,305 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f
2024-11-07 09:25:35,342 - INFO - Verified VN network id 8 for VN e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,342 - INFO - Verifications in API Server for VN ctest-vn-88495179 passed
2024-11-07 09:25:35,342 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,356 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f
2024-11-07 09:25:35,366 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ae901a82-4f7c-476e-b899-2f31d8ca152f
2024-11-07 09:25:35,375 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/a417e495-d497-4cdb-bc64-da0b199e8fb6
2024-11-07 09:25:35,388 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82181151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16280631900066827991', 'uuid-lslong': '11406179298075076410'}, 'enable': 'true', 'created': '2024-11-07T09:25:32', 'last-modified': '2024-11-07T09:25:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014632'}
2024-11-07 09:25:35,395 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-07 09:25:35,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88495179 passed
2024-11-07 09:25:35,396 - DEBUG - ====Verifying policy data for ctest-vn-88495179 in API_Server ======
2024-11-07 09:25:35,396 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 09:25:35,402 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5
2024-11-07 09:25:35,415 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2
2024-11-07 09:25:35,498 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e1f06c74-6260-4ed7-9e4a-e3a39a2de73a
2024-11-07 09:25:35,514 - DEBUG - ==>Verifying data for policy with id: 7768477c-d71b-49b8-9774-0e5195a5df40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']
2024-11-07 09:25:35,514 - INFO - VN ctest-vn-88495179 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 09:25:35,514 - DEBUG - Verifying the vn in opserver
2024-11-07 09:25:35,514 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179 virtual network link through opserver 10.0.0.22
2024-11-07 09:25:35,514 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 09:25:35,815 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 09:25:35,884 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179?flat'}
2024-11-07 09:25:35,884 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-88495179 is found in opserver
2024-11-07 09:25:35,894 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 09:25:35,899 - DEBUG - VRF ids for VN ctest-vn-88495179: {}
2024-11-07 09:25:35,899 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 09:25:35,908 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5
2024-11-07 09:25:35,921 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2
2024-11-07 09:25:36,001 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,017 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,030 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3
2024-11-07 09:25:36,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3
2024-11-07 09:25:36,049 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e7fef2d-ed63-40fa-88c0-db0c4e092710
2024-11-07 09:25:36,057 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 09:25:36,057 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,072 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3
2024-11-07 09:25:36,096 - INFO - Verified VN network id 9 for VN b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,096 - INFO - Verifications in API Server for VN ctest-vn-71471204 passed
2024-11-07 09:25:36,097 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,110 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3
2024-11-07 09:25:36,119 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bbe46a53-0e36-4f6f-ae30-665181eb93c3
2024-11-07 09:25:36,131 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0e7fef2d-ed63-40fa-88c0-db0c4e092710
2024-11-07 09:25:36,144 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82181151', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13067754061939167112', 'uuid-lslong': '9237018837915265553'}, 'enable': 'true', 'created': '2024-11-07T09:25:33', 'last-modified': '2024-11-07T09:25:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510368'}
2024-11-07 09:25:36,150 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-07 09:25:36,150 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71471204 passed
2024-11-07 09:25:36,150 - DEBUG - ====Verifying policy data for ctest-vn-71471204 in API_Server ======
2024-11-07 09:25:36,150 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-11-07 09:25:36,156 - DEBUG - Requesting: http://10.0.0.22:8082/domain/b217daf3-e5e1-4464-8241-3a02dff0f5b5
2024-11-07 09:25:36,168 - DEBUG - Requesting: http://10.0.0.22:8082/project/c10dd580-7b3d-459a-b9fb-be0b5599dda2
2024-11-07 09:25:36,247 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b559fd15-5a0d-4f88-8030-7bb17987ea11
2024-11-07 09:25:36,261 - DEBUG - ==>Verifying data for policy with id: 7768477c-d71b-49b8-9774-0e5195a5df40, fqn: ['default-domain', 'ctest-TestBasicPolicy-82181151', 'ctest-policy-allow-all-97368774']
2024-11-07 09:25:36,261 - INFO - VN ctest-vn-71471204 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-07 09:25:36,261 - DEBUG - Verifying the vn in opserver
2024-11-07 09:25:36,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204 virtual network link through opserver 10.0.0.22
2024-11-07 09:25:36,261 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-11-07 09:25:36,273 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204?flat'}
2024-11-07 09:25:36,273 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82181151:ctest-vn-71471204 is found in opserver
2024-11-07 09:25:36,284 - DEBUG - Do not have enough data to verify VN in agent
2024-11-07 09:25:36,288 - DEBUG - VRF ids for VN ctest-vn-71471204: {}
2024-11-07 09:25:36,343 - DEBUG - Services list from nova: [