2024-08-27 02:31:10,475 - INFO - Domain Default found not creating
2024-08-27 02:31:10,822 - INFO - Project ctest-TestBasicPolicy-94756056 not found, creating it
2024-08-27 02:31:11,434 - INFO - Created Project:ctest-TestBasicPolicy-94756056, ID : f6333013-5f40-4d60-8db6-07ab67a3d790
2024-08-27 02:31:13,470 - INFO - ================================================================================
2024-08-27 02:31:13,470 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-08-27 02:31:13,470 - 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-08-27 02:31:13,767 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with
2024-08-27 02:31:13,767 - INFO - Initial checks done. Running the testcase now
2024-08-27 02:31:13,767 - INFO -
2024-08-27 02:31:14,509 - DEBUG - Response for create_network : {'network': {'id': 'e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602', 'name': 'ctest-vn-46332981', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'project_id': 'f63330135f404d608db607ab67a3d790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-vn-46332981'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 02:31:14,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cd86902-e6d9-4144-8c4f-9a9324926a96', 'name': '', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'network_id': 'e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602', 'ip_version': 4, 'cidr': '71.5.52.128/26', 'allocation_pools': [{'start': '71.5.52.130', 'end': '71.5.52.190'}], 'gateway_ip': '71.5.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.5.52.130', 'tags': [], 'project_id': 'f63330135f404d608db607ab67a3d790'}}
2024-08-27 02:31:14,737 - INFO - Created VN ctest-vn-46332981
2024-08-27 02:31:14,793 - DEBUG - VN ctest-vn-46332981 UUID is e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:15,270 - DEBUG - Response for create_network : {'network': {'id': '8e8afee6-477b-4a2f-b6d6-857503f08020', 'name': 'ctest-vn-80642916', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'project_id': 'f63330135f404d608db607ab67a3d790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-vn-80642916'], 'port_security_enabled': True, 'description': ''}}
2024-08-27 02:31:15,606 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c11b4e3b-1d5b-44b2-8569-a81ba2917bd9', 'name': '', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'network_id': '8e8afee6-477b-4a2f-b6d6-857503f08020', 'ip_version': 4, 'cidr': '174.71.97.128/26', 'allocation_pools': [{'start': '174.71.97.130', 'end': '174.71.97.190'}], 'gateway_ip': '174.71.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.71.97.130', 'tags': [], 'project_id': 'f63330135f404d608db607ab67a3d790'}}
2024-08-27 02:31:15,643 - INFO - Created VN ctest-vn-80642916
2024-08-27 02:31:15,702 - DEBUG - VN ctest-vn-80642916 UUID is 8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:15,881 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981, 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-94756056:ctest-vn-80642916, 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-08-27 02:31:16,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602', 'name': 'ctest-vn-46332981', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'project_id': 'f63330135f404d608db607ab67a3d790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cd86902-e6d9-4144-8c4f-9a9324926a96'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-vn-46332981'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-policy-allow-all-18362750']], 'subnet_ipam': [{'subnet_cidr': '71.5.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 02:31:16,573 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e8afee6-477b-4a2f-b6d6-857503f08020', 'name': 'ctest-vn-80642916', 'tenant_id': 'f63330135f404d608db607ab67a3d790', 'project_id': 'f63330135f404d608db607ab67a3d790', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c11b4e3b-1d5b-44b2-8569-a81ba2917bd9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-vn-80642916'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-policy-allow-all-18362750']], 'subnet_ipam': [{'subnet_cidr': '174.71.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-08-27 02:31:16,753 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 02:31:17,063 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 02:31:17,149 - DEBUG - Requesting: http://10.0.0.45:8082/domain/d41e2796-2593-4c9d-bf9e-6f4facb930e0
2024-08-27 02:31:17,167 - DEBUG - Requesting: http://10.0.0.45:8082/project/f6333013-5f40-4d60-8db6-07ab67a3d790
2024-08-27 02:31:17,245 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,269 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,294 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/549fa9ef-2760-4e79-a045-68322b085eec
2024-08-27 02:31:17,310 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/549fa9ef-2760-4e79-a045-68322b085eec
2024-08-27 02:31:17,322 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/9f196a72-2025-47f3-b107-00cf8528d0db
2024-08-27 02:31:17,332 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 02:31:17,332 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,342 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/549fa9ef-2760-4e79-a045-68322b085eec
2024-08-27 02:31:17,355 - INFO - Verified VN network id 7 for VN e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,355 - INFO - Verifications in API Server for VN ctest-vn-46332981 passed
2024-08-27 02:31:17,355 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,364 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/549fa9ef-2760-4e79-a045-68322b085eec
2024-08-27 02:31:17,370 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/549fa9ef-2760-4e79-a045-68322b085eec
2024-08-27 02:31:17,379 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/9f196a72-2025-47f3-b107-00cf8528d0db
2024-08-27 02:31:17,394 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94756056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16642165884728135183', 'uuid-lslong': '12973832141085038082'}, 'enable': 'true', 'created': '2024-08-27T02:31:14', 'last-modified': '2024-08-27T02:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.157829'}
2024-08-27 02:31:17,402 - DEBUG - Route Targets: ['target:64512:8000005']
2024-08-27 02:31:17,402 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46332981 passed
2024-08-27 02:31:17,402 - DEBUG - ====Verifying policy data for ctest-vn-46332981 in API_Server ======
2024-08-27 02:31:17,402 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 02:31:17,409 - DEBUG - Requesting: http://10.0.0.45:8082/domain/d41e2796-2593-4c9d-bf9e-6f4facb930e0
2024-08-27 02:31:17,423 - DEBUG - Requesting: http://10.0.0.45:8082/project/f6333013-5f40-4d60-8db6-07ab67a3d790
2024-08-27 02:31:17,510 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/e6f4d9b2-bc58-4e0f-b40c-4f9810eb5602
2024-08-27 02:31:17,527 - DEBUG - ==>Verifying data for policy with id: 3add2ca2-5815-4ab6-836b-d5728a3a67ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-policy-allow-all-18362750']
2024-08-27 02:31:17,527 - INFO - VN ctest-vn-46332981 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 02:31:17,527 - DEBUG - Verifying the vn in opserver
2024-08-27 02:31:17,527 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981 virtual network link through opserver 10.0.0.45
2024-08-27 02:31:17,527 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 02:31:17,870 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 02:31:17,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981?flat'}
2024-08-27 02:31:17,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-46332981 is found in opserver
2024-08-27 02:31:17,996 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 02:31:18,003 - DEBUG - VRF ids for VN ctest-vn-46332981: {}
2024-08-27 02:31:18,003 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 02:31:18,013 - DEBUG - Requesting: http://10.0.0.45:8082/domain/d41e2796-2593-4c9d-bf9e-6f4facb930e0
2024-08-27 02:31:18,031 - DEBUG - Requesting: http://10.0.0.45:8082/project/f6333013-5f40-4d60-8db6-07ab67a3d790
2024-08-27 02:31:18,110 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,126 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,143 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/2411b6e4-6d0e-43f4-924d-a40726c0966c
2024-08-27 02:31:18,162 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/2411b6e4-6d0e-43f4-924d-a40726c0966c
2024-08-27 02:31:18,178 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa7be381-b94a-4e7b-843a-52cbdd16b0a9
2024-08-27 02:31:18,190 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 02:31:18,190 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,206 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/2411b6e4-6d0e-43f4-924d-a40726c0966c
2024-08-27 02:31:18,230 - INFO - Verified VN network id 8 for VN 8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,231 - INFO - Verifications in API Server for VN ctest-vn-80642916 passed
2024-08-27 02:31:18,231 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,248 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/2411b6e4-6d0e-43f4-924d-a40726c0966c
2024-08-27 02:31:18,263 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/2411b6e4-6d0e-43f4-924d-a40726c0966c
2024-08-27 02:31:18,277 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/aa7be381-b94a-4e7b-843a-52cbdd16b0a9
2024-08-27 02:31:18,309 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-80642916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94756056', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10271302165167032879', 'uuid-lslong': '13174864497542725664'}, 'enable': 'true', 'created': '2024-08-27T02:31:15', 'last-modified': '2024-08-27T02:31:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.772929'}
2024-08-27 02:31:18,323 - DEBUG - Route Targets: ['target:64512:8000006']
2024-08-27 02:31:18,323 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80642916 passed
2024-08-27 02:31:18,323 - DEBUG - ====Verifying policy data for ctest-vn-80642916 in API_Server ======
2024-08-27 02:31:18,323 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2024-08-27 02:31:18,338 - DEBUG - Requesting: http://10.0.0.45:8082/domain/d41e2796-2593-4c9d-bf9e-6f4facb930e0
2024-08-27 02:31:18,362 - DEBUG - Requesting: http://10.0.0.45:8082/project/f6333013-5f40-4d60-8db6-07ab67a3d790
2024-08-27 02:31:18,459 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/8e8afee6-477b-4a2f-b6d6-857503f08020
2024-08-27 02:31:18,484 - DEBUG - ==>Verifying data for policy with id: 3add2ca2-5815-4ab6-836b-d5728a3a67ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-94756056', 'ctest-policy-allow-all-18362750']
2024-08-27 02:31:18,485 - INFO - VN ctest-vn-80642916 Policy verification: verify_vn_policy_in_api_server, status: True
2024-08-27 02:31:18,485 - DEBUG - Verifying the vn in opserver
2024-08-27 02:31:18,485 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-80642916 virtual network link through opserver 10.0.0.45
2024-08-27 02:31:18,485 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2024-08-27 02:31:18,509 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-80642916', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-80642916?flat'}
2024-08-27 02:31:18,509 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94756056:ctest-vn-80642916 is found in opserver
2024-08-27 02:31:18,535 - DEBUG - Do not have enough data to verify VN in agent
2024-08-27 02:31:18,551 - DEBUG - VRF ids for VN ctest-vn-80642916: {}
2024-08-27 02:31:18,686 - DEBUG - Services list from nova: [