2024-09-12 02:27:14,538 - INFO - Domain Default found not creating
2024-09-12 02:27:14,712 - INFO - Project ctest-TestBasicPolicy-46140585 not found, creating it
2024-09-12 02:27:15,224 - INFO - Created Project:ctest-TestBasicPolicy-46140585, ID : f0a332e5-a375-4a86-928d-a745bbb36ed9
2024-09-12 02:27:16,987 - INFO - ================================================================================
2024-09-12 02:27:16,987 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-12 02:27:16,988 - 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-12 02:27:17,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.30': {'10.20.0.13': '0'}} with
2024-09-12 02:27:17,254 - INFO - Initial checks done. Running the testcase now
2024-09-12 02:27:17,254 - INFO -
2024-09-12 02:27:17,910 - DEBUG - Response for create_network : {'network': {'id': '6570f726-6f01-4353-929f-68450d0861a7', 'name': 'ctest-vn-53433651', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-53433651'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:27:18,110 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a06ffeda-fd68-4e64-ab6c-dbf4b91d0705', 'name': '', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'network_id': '6570f726-6f01-4353-929f-68450d0861a7', 'ip_version': 4, 'cidr': '62.194.184.64/26', 'allocation_pools': [{'start': '62.194.184.66', 'end': '62.194.184.126'}], 'gateway_ip': '62.194.184.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.194.184.66', 'tags': [], 'project_id': 'f0a332e5a3754a86928da745bbb36ed9'}}
2024-09-12 02:27:18,132 - INFO - Created VN ctest-vn-53433651
2024-09-12 02:27:18,193 - DEBUG - VN ctest-vn-53433651 UUID is 6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:18,559 - DEBUG - Response for create_network : {'network': {'id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'name': 'ctest-vn-06254196', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-06254196'], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:27:18,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '237340f1-db86-462e-b699-f67321491249', 'name': '', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'network_id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'ip_version': 4, 'cidr': '21.55.255.64/26', 'allocation_pools': [{'start': '21.55.255.66', 'end': '21.55.255.126'}], 'gateway_ip': '21.55.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.55.255.66', 'tags': [], 'project_id': 'f0a332e5a3754a86928da745bbb36ed9'}}
2024-09-12 02:27:18,777 - INFO - Created VN ctest-vn-06254196
2024-09-12 02:27:18,837 - DEBUG - VN ctest-vn-06254196 UUID is eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:18,975 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651, 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-46140585:ctest-vn-06254196, 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-12 02:27:19,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6570f726-6f01-4353-929f-68450d0861a7', 'name': 'ctest-vn-53433651', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a06ffeda-fd68-4e64-ab6c-dbf4b91d0705'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-53433651'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']], 'subnet_ipam': [{'subnet_cidr': '62.194.184.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:27:19,599 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb2cffe3-08a1-434a-962f-bda8a2ddfd5f', 'name': 'ctest-vn-06254196', 'tenant_id': 'f0a332e5a3754a86928da745bbb36ed9', 'project_id': 'f0a332e5a3754a86928da745bbb36ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['237340f1-db86-462e-b699-f67321491249'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-vn-06254196'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']], 'subnet_ipam': [{'subnet_cidr': '21.55.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-12 02:27:19,757 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-12 02:27:20,126 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-12 02:27:20,164 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f
2024-09-12 02:27:20,183 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9
2024-09-12 02:27:20,269 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,290 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,311 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0
2024-09-12 02:27:20,321 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0
2024-09-12 02:27:20,332 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55c347e9-fa4f-4988-84dc-d8269b0528b3
2024-09-12 02:27:20,340 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 02:27:20,341 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,357 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0
2024-09-12 02:27:20,386 - INFO - Verified VN network id 8 for VN 6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,386 - INFO - Verifications in API Server for VN ctest-vn-53433651 passed
2024-09-12 02:27:20,387 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,406 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0
2024-09-12 02:27:20,417 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/89cd0b11-00d0-4441-9eb2-6823b63700d0
2024-09-12 02:27:20,427 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/55c347e9-fa4f-4988-84dc-d8269b0528b3
2024-09-12 02:27:20,443 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46140585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7309613939665486675', 'uuid-lslong': '10565277896615158183'}, 'enable': 'true', 'created': '2024-09-12T02:27:17', 'last-modified': '2024-09-12T02:27:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.160845'}
2024-09-12 02:27:20,451 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-12 02:27:20,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53433651 passed
2024-09-12 02:27:20,451 - DEBUG - ====Verifying policy data for ctest-vn-53433651 in API_Server ======
2024-09-12 02:27:20,451 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-12 02:27:20,458 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f
2024-09-12 02:27:20,473 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9
2024-09-12 02:27:20,557 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/6570f726-6f01-4353-929f-68450d0861a7
2024-09-12 02:27:20,573 - DEBUG - ==>Verifying data for policy with id: 49d94e0d-3b01-4c8d-b8af-bc431398a061, fqn: ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']
2024-09-12 02:27:20,573 - INFO - VN ctest-vn-53433651 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 02:27:20,573 - DEBUG - Verifying the vn in opserver
2024-09-12 02:27:20,573 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651 virtual network link through opserver 10.0.0.30
2024-09-12 02:27:20,574 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-12 02:27:20,917 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-12 02:27:20,992 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651?flat'}
2024-09-12 02:27:20,992 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-53433651 is found in opserver
2024-09-12 02:27:21,005 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 02:27:21,011 - DEBUG - VRF ids for VN ctest-vn-53433651: {}
2024-09-12 02:27:21,011 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-12 02:27:21,017 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f
2024-09-12 02:27:21,032 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9
2024-09-12 02:27:21,115 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,138 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,153 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6
2024-09-12 02:27:21,164 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6
2024-09-12 02:27:21,174 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/6ab9d48d-4ac4-45a9-9a9b-f6b90894c93e
2024-09-12 02:27:21,183 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 02:27:21,183 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,200 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6
2024-09-12 02:27:21,225 - INFO - Verified VN network id 9 for VN eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,225 - INFO - Verifications in API Server for VN ctest-vn-06254196 passed
2024-09-12 02:27:21,225 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,243 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6
2024-09-12 02:27:21,255 - DEBUG - Requesting: http://10.0.0.30:8082/routing-instance/3ac3d6aa-338b-4096-8137-fb00491da0c6
2024-09-12 02:27:21,265 - DEBUG - Requesting: http://10.0.0.30:8082/route-target/6ab9d48d-4ac4-45a9-9a9b-f6b90894c93e
2024-09-12 02:27:21,282 - DEBUG - Control-node 10.0.0.30 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46140585', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16946200848455779146', 'uuid-lslong': '10822076961579203935'}, 'enable': 'true', 'created': '2024-09-12T02:27:18', 'last-modified': '2024-09-12T02:27:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.715414'}
2024-09-12 02:27:21,289 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-12 02:27:21,289 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06254196 passed
2024-09-12 02:27:21,290 - DEBUG - ====Verifying policy data for ctest-vn-06254196 in API_Server ======
2024-09-12 02:27:21,290 - DEBUG - Requesting: http://10.0.0.30:8082/domains
2024-09-12 02:27:21,297 - DEBUG - Requesting: http://10.0.0.30:8082/domain/5473d75d-2072-47eb-9dcd-620f886a599f
2024-09-12 02:27:21,313 - DEBUG - Requesting: http://10.0.0.30:8082/project/f0a332e5-a375-4a86-928d-a745bbb36ed9
2024-09-12 02:27:21,398 - DEBUG - Requesting: http://10.0.0.30:8082/virtual-network/eb2cffe3-08a1-434a-962f-bda8a2ddfd5f
2024-09-12 02:27:21,416 - DEBUG - ==>Verifying data for policy with id: 49d94e0d-3b01-4c8d-b8af-bc431398a061, fqn: ['default-domain', 'ctest-TestBasicPolicy-46140585', 'ctest-policy-allow-all-68464551']
2024-09-12 02:27:21,416 - INFO - VN ctest-vn-06254196 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-12 02:27:21,417 - DEBUG - Verifying the vn in opserver
2024-09-12 02:27:21,417 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196 virtual network link through opserver 10.0.0.30
2024-09-12 02:27:21,417 - DEBUG - Requesting: http://10.0.0.30:8081/analytics/uves/virtual-networks
2024-09-12 02:27:21,431 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196', 'href': 'http://10.0.0.30:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196?flat'}
2024-09-12 02:27:21,432 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46140585:ctest-vn-06254196 is found in opserver
2024-09-12 02:27:21,445 - DEBUG - Do not have enough data to verify VN in agent
2024-09-12 02:27:21,452 - DEBUG - VRF ids for VN ctest-vn-06254196: {}
2024-09-12 02:27:21,521 - DEBUG - Services list from nova: [