2025-01-27 16:09:43,416 - INFO - Domain Default found not creating
2025-01-27 16:09:43,561 - INFO - Project ctest-TestBasicPolicy-24698140 not found, creating it
2025-01-27 16:09:44,019 - INFO - Created Project:ctest-TestBasicPolicy-24698140, ID : ee5adaf0-c8d9-4fba-a670-aca8239da1c1
2025-01-27 16:09:45,512 - INFO - ================================================================================
2025-01-27 16:09:45,512 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-27 16:09:45,512 - 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
2025-01-27 16:09:45,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.6': '0'}} with
2025-01-27 16:09:45,768 - INFO - Initial checks done. Running the testcase now
2025-01-27 16:09:45,768 - INFO -
2025-01-27 16:09:46,840 - DEBUG - Response for create_network : {'network': {'id': 'f29cb2cf-560e-4a58-9c54-b0a893eadddf', 'name': 'ctest-vn-06469633', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-vn-06469633'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 16:09:47,076 - DEBUG - Response for create_subnet : {'subnet': {'id': '63faf137-475f-437c-810c-b231f4c76ead', 'name': '', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'network_id': 'f29cb2cf-560e-4a58-9c54-b0a893eadddf', 'ip_version': 4, 'cidr': '40.51.56.128/26', 'allocation_pools': [{'start': '40.51.56.130', 'end': '40.51.56.190'}], 'gateway_ip': '40.51.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.51.56.130', 'tags': [], 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1'}}
2025-01-27 16:09:47,096 - INFO - Created VN ctest-vn-06469633
2025-01-27 16:09:47,150 - DEBUG - VN ctest-vn-06469633 UUID is f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:47,470 - DEBUG - Response for create_network : {'network': {'id': '50839d05-d7fc-4bd3-84b9-43a3991ac9f2', 'name': 'ctest-vn-18040339', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-vn-18040339'], 'port_security_enabled': True, 'description': ''}}
2025-01-27 16:09:47,661 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7f1b467-6dc9-4508-88ee-936d9cf2e406', 'name': '', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'network_id': '50839d05-d7fc-4bd3-84b9-43a3991ac9f2', 'ip_version': 4, 'cidr': '176.155.43.192/26', 'allocation_pools': [{'start': '176.155.43.194', 'end': '176.155.43.254'}], 'gateway_ip': '176.155.43.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '176.155.43.194', 'tags': [], 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1'}}
2025-01-27 16:09:47,679 - INFO - Created VN ctest-vn-18040339
2025-01-27 16:09:47,730 - DEBUG - VN ctest-vn-18040339 UUID is 50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:47,842 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633, 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-24698140:ctest-vn-18040339, 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]
2025-01-27 16:09:48,140 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f29cb2cf-560e-4a58-9c54-b0a893eadddf', 'name': 'ctest-vn-06469633', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['63faf137-475f-437c-810c-b231f4c76ead'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-vn-06469633'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-policy-allow-all-31431606']], 'subnet_ipam': [{'subnet_cidr': '40.51.56.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 16:09:48,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50839d05-d7fc-4bd3-84b9-43a3991ac9f2', 'name': 'ctest-vn-18040339', 'tenant_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'project_id': 'ee5adaf0c8d94fbaa670aca8239da1c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7f1b467-6dc9-4508-88ee-936d9cf2e406'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-vn-18040339'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-policy-allow-all-31431606']], 'subnet_ipam': [{'subnet_cidr': '176.155.43.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-27 16:09:48,542 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-27 16:09:48,840 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-27 16:09:48,869 - DEBUG - Requesting: http://10.0.0.34:8082/domain/77406968-930b-497a-8a5c-f6be84654a5d
2025-01-27 16:09:48,883 - DEBUG - Requesting: http://10.0.0.34:8082/project/ee5adaf0-c8d9-4fba-a670-aca8239da1c1
2025-01-27 16:09:48,959 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:48,970 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:48,981 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d2be6e8b-971a-4d86-8129-2906b6277fc9
2025-01-27 16:09:48,990 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d2be6e8b-971a-4d86-8129-2906b6277fc9
2025-01-27 16:09:48,997 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/34e4da76-1419-4467-8a49-146563672260
2025-01-27 16:09:49,006 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 16:09:49,006 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:49,017 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d2be6e8b-971a-4d86-8129-2906b6277fc9
2025-01-27 16:09:49,032 - INFO - Verified VN network id 8 for VN f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:49,032 - INFO - Verifications in API Server for VN ctest-vn-06469633 passed
2025-01-27 16:09:49,032 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:49,042 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d2be6e8b-971a-4d86-8129-2906b6277fc9
2025-01-27 16:09:49,049 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/d2be6e8b-971a-4d86-8129-2906b6277fc9
2025-01-27 16:09:49,056 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/34e4da76-1419-4467-8a49-146563672260
2025-01-27 16:09:49,070 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24698140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17482044457117174360', 'uuid-lslong': '11264822806043090399'}, 'enable': 'true', 'created': '2025-01-27T16:09:46', 'last-modified': '2025-01-27T16:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956660'}
2025-01-27 16:09:49,077 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-27 16:09:49,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06469633 passed
2025-01-27 16:09:49,078 - DEBUG - ====Verifying policy data for ctest-vn-06469633 in API_Server ======
2025-01-27 16:09:49,078 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-27 16:09:49,084 - DEBUG - Requesting: http://10.0.0.34:8082/domain/77406968-930b-497a-8a5c-f6be84654a5d
2025-01-27 16:09:49,096 - DEBUG - Requesting: http://10.0.0.34:8082/project/ee5adaf0-c8d9-4fba-a670-aca8239da1c1
2025-01-27 16:09:49,175 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/f29cb2cf-560e-4a58-9c54-b0a893eadddf
2025-01-27 16:09:49,186 - DEBUG - ==>Verifying data for policy with id: 33267a40-7637-436a-8214-0946f266d27a, fqn: ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-policy-allow-all-31431606']
2025-01-27 16:09:49,186 - INFO - VN ctest-vn-06469633 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 16:09:49,186 - DEBUG - Verifying the vn in opserver
2025-01-27 16:09:49,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633 virtual network link through opserver 10.0.0.34
2025-01-27 16:09:49,186 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-27 16:09:49,477 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-27 16:09:49,531 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633?flat'}
2025-01-27 16:09:49,531 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-06469633 is found in opserver
2025-01-27 16:09:49,543 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 16:09:49,549 - DEBUG - VRF ids for VN ctest-vn-06469633: {}
2025-01-27 16:09:49,549 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-27 16:09:49,554 - DEBUG - Requesting: http://10.0.0.34:8082/domain/77406968-930b-497a-8a5c-f6be84654a5d
2025-01-27 16:09:49,566 - DEBUG - Requesting: http://10.0.0.34:8082/project/ee5adaf0-c8d9-4fba-a670-aca8239da1c1
2025-01-27 16:09:49,638 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,650 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,660 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cd58c6c1-9925-48b5-8fdb-1f1aa757b0d2
2025-01-27 16:09:49,667 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cd58c6c1-9925-48b5-8fdb-1f1aa757b0d2
2025-01-27 16:09:49,675 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/4066aa9f-0fff-42f9-b6df-30de8f15afd7
2025-01-27 16:09:49,682 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 16:09:49,682 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,691 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cd58c6c1-9925-48b5-8fdb-1f1aa757b0d2
2025-01-27 16:09:49,706 - INFO - Verified VN network id 9 for VN 50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,706 - INFO - Verifications in API Server for VN ctest-vn-18040339 passed
2025-01-27 16:09:49,706 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,717 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cd58c6c1-9925-48b5-8fdb-1f1aa757b0d2
2025-01-27 16:09:49,725 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cd58c6c1-9925-48b5-8fdb-1f1aa757b0d2
2025-01-27 16:09:49,733 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/4066aa9f-0fff-42f9-b6df-30de8f15afd7
2025-01-27 16:09:49,745 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-18040339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24698140', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5801653393407364051', 'uuid-lslong': '9563749653625358834'}, 'enable': 'true', 'created': '2025-01-27T16:09:47', 'last-modified': '2025-01-27T16:09:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.381420'}
2025-01-27 16:09:49,752 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-27 16:09:49,752 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-18040339 passed
2025-01-27 16:09:49,752 - DEBUG - ====Verifying policy data for ctest-vn-18040339 in API_Server ======
2025-01-27 16:09:49,752 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-01-27 16:09:49,758 - DEBUG - Requesting: http://10.0.0.34:8082/domain/77406968-930b-497a-8a5c-f6be84654a5d
2025-01-27 16:09:49,770 - DEBUG - Requesting: http://10.0.0.34:8082/project/ee5adaf0-c8d9-4fba-a670-aca8239da1c1
2025-01-27 16:09:49,843 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/50839d05-d7fc-4bd3-84b9-43a3991ac9f2
2025-01-27 16:09:49,853 - DEBUG - ==>Verifying data for policy with id: 33267a40-7637-436a-8214-0946f266d27a, fqn: ['default-domain', 'ctest-TestBasicPolicy-24698140', 'ctest-policy-allow-all-31431606']
2025-01-27 16:09:49,853 - INFO - VN ctest-vn-18040339 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-27 16:09:49,853 - DEBUG - Verifying the vn in opserver
2025-01-27 16:09:49,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-18040339 virtual network link through opserver 10.0.0.34
2025-01-27 16:09:49,853 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-01-27 16:09:49,865 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-18040339', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-18040339?flat'}
2025-01-27 16:09:49,865 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24698140:ctest-vn-18040339 is found in opserver
2025-01-27 16:09:49,876 - DEBUG - Do not have enough data to verify VN in agent
2025-01-27 16:09:49,881 - DEBUG - VRF ids for VN ctest-vn-18040339: {}
2025-01-27 16:09:49,936 - DEBUG - Services list from nova: [