2025-01-15 09:21:12,305 - INFO - Domain Default found not creating
2025-01-15 09:21:12,477 - INFO - Project ctest-TestBasicPolicy-46960505 not found, creating it
2025-01-15 09:21:12,953 - INFO - Created Project:ctest-TestBasicPolicy-46960505, ID : a596b038-cd23-48d6-aa8c-4c4b8c9641b2
2025-01-15 09:21:14,444 - INFO - ================================================================================
2025-01-15 09:21:14,444 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-01-15 09:21:14,445 - 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-15 09:21:14,703 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.33': '0'}} with
2025-01-15 09:21:14,704 - INFO - Initial checks done. Running the testcase now
2025-01-15 09:21:14,704 - INFO -
2025-01-15 09:21:15,271 - DEBUG - Response for create_network : {'network': {'id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'name': 'ctest-vn-71621001', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-71621001'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:21:15,501 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc71a2b9-535e-49cb-a8a6-117f31a9ec3d', 'name': '', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'network_id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'ip_version': 4, 'cidr': '18.123.130.192/26', 'allocation_pools': [{'start': '18.123.130.194', 'end': '18.123.130.254'}], 'gateway_ip': '18.123.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.123.130.194', 'tags': [], 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2'}}
2025-01-15 09:21:15,523 - INFO - Created VN ctest-vn-71621001
2025-01-15 09:21:15,582 - DEBUG - VN ctest-vn-71621001 UUID is 04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:15,873 - DEBUG - Response for create_network : {'network': {'id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'name': 'ctest-vn-83625794', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-83625794'], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:21:16,074 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6be8e7f-5d4d-4e1d-a568-0d9f84bfc481', 'name': '', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'network_id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'ip_version': 4, 'cidr': '40.246.228.64/26', 'allocation_pools': [{'start': '40.246.228.66', 'end': '40.246.228.126'}], 'gateway_ip': '40.246.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.246.228.66', 'tags': [], 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2'}}
2025-01-15 09:21:16,093 - INFO - Created VN ctest-vn-83625794
2025-01-15 09:21:16,146 - DEBUG - VN ctest-vn-83625794 UUID is cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:16,271 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001, 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-46960505:ctest-vn-83625794, 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-15 09:21:16,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '04c2ac3b-08fb-4174-aa01-27e4fcd60919', 'name': 'ctest-vn-71621001', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bc71a2b9-535e-49cb-a8a6-117f31a9ec3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-71621001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']], 'subnet_ipam': [{'subnet_cidr': '18.123.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:21:16,821 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff', 'name': 'ctest-vn-83625794', 'tenant_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'project_id': 'a596b038cd2348d6aa8c4c4b8c9641b2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6be8e7f-5d4d-4e1d-a568-0d9f84bfc481'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-vn-83625794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']], 'subnet_ipam': [{'subnet_cidr': '40.246.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-01-15 09:21:16,998 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 09:21:17,306 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 09:21:17,339 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea
2025-01-15 09:21:17,352 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2
2025-01-15 09:21:17,430 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,444 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,454 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd
2025-01-15 09:21:17,462 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd
2025-01-15 09:21:17,471 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5bbca21-c4fe-4740-89be-cec1dc7104b5
2025-01-15 09:21:17,479 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 09:21:17,479 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,489 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd
2025-01-15 09:21:17,504 - INFO - Verified VN network id 7 for VN 04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,504 - INFO - Verifications in API Server for VN ctest-vn-71621001 passed
2025-01-15 09:21:17,504 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,516 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd
2025-01-15 09:21:17,525 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0fda970f-d319-4e4d-bd7d-13422d6849dd
2025-01-15 09:21:17,533 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/f5bbca21-c4fe-4740-89be-cec1dc7104b5
2025-01-15 09:21:17,546 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46960505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '343025891187310964', 'uuid-lslong': '12250116325872371993'}, 'enable': 'true', 'created': '2025-01-15T09:21:15', 'last-modified': '2025-01-15T09:21:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990590'}
2025-01-15 09:21:17,553 - DEBUG - Route Targets: ['target:64512:8000004']
2025-01-15 09:21:17,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71621001 passed
2025-01-15 09:21:17,553 - DEBUG - ====Verifying policy data for ctest-vn-71621001 in API_Server ======
2025-01-15 09:21:17,553 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 09:21:17,561 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea
2025-01-15 09:21:17,576 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2
2025-01-15 09:21:17,647 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/04c2ac3b-08fb-4174-aa01-27e4fcd60919
2025-01-15 09:21:17,659 - DEBUG - ==>Verifying data for policy with id: 66168972-65c1-41f2-9382-65c8688883f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']
2025-01-15 09:21:17,659 - INFO - VN ctest-vn-71621001 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 09:21:17,659 - DEBUG - Verifying the vn in opserver
2025-01-15 09:21:17,659 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001 virtual network link through opserver 10.0.0.22
2025-01-15 09:21:17,659 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 09:21:17,952 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 09:21:18,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001?flat'}
2025-01-15 09:21:18,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-71621001 is found in opserver
2025-01-15 09:21:18,022 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 09:21:18,028 - DEBUG - VRF ids for VN ctest-vn-71621001: {}
2025-01-15 09:21:18,028 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 09:21:18,035 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea
2025-01-15 09:21:18,048 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2
2025-01-15 09:21:18,136 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,149 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,160 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58
2025-01-15 09:21:18,169 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58
2025-01-15 09:21:18,177 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9172ccdd-3370-466f-9f01-64d979d26b7f
2025-01-15 09:21:18,184 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 09:21:18,184 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,194 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58
2025-01-15 09:21:18,211 - INFO - Verified VN network id 8 for VN cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,211 - INFO - Verifications in API Server for VN ctest-vn-83625794 passed
2025-01-15 09:21:18,211 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,224 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58
2025-01-15 09:21:18,233 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/e63e8f5c-ba37-41dc-ae02-ada55fde5e58
2025-01-15 09:21:18,242 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9172ccdd-3370-466f-9f01-64d979d26b7f
2025-01-15 09:21:18,256 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-46960505', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14606795771145375240', 'uuid-lslong': '10339590983108700415'}, 'enable': 'true', 'created': '2025-01-15T09:21:15', 'last-modified': '2025-01-15T09:21:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.453108'}
2025-01-15 09:21:18,263 - DEBUG - Route Targets: ['target:64512:8000005']
2025-01-15 09:21:18,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83625794 passed
2025-01-15 09:21:18,263 - DEBUG - ====Verifying policy data for ctest-vn-83625794 in API_Server ======
2025-01-15 09:21:18,263 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-01-15 09:21:18,270 - DEBUG - Requesting: http://10.0.0.22:8082/domain/26f6f4fe-da6c-43d8-9b2e-61ab1b6fbbea
2025-01-15 09:21:18,283 - DEBUG - Requesting: http://10.0.0.22:8082/project/a596b038-cd23-48d6-aa8c-4c4b8c9641b2
2025-01-15 09:21:18,362 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/cab5c35d-1dcc-4e08-8f7d-9b37b706a8ff
2025-01-15 09:21:18,372 - DEBUG - ==>Verifying data for policy with id: 66168972-65c1-41f2-9382-65c8688883f8, fqn: ['default-domain', 'ctest-TestBasicPolicy-46960505', 'ctest-policy-allow-all-61876662']
2025-01-15 09:21:18,372 - INFO - VN ctest-vn-83625794 Policy verification: verify_vn_policy_in_api_server, status: True
2025-01-15 09:21:18,372 - DEBUG - Verifying the vn in opserver
2025-01-15 09:21:18,372 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794 virtual network link through opserver 10.0.0.22
2025-01-15 09:21:18,372 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-01-15 09:21:18,385 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794?flat'}
2025-01-15 09:21:18,386 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-46960505:ctest-vn-83625794 is found in opserver
2025-01-15 09:21:18,397 - DEBUG - Do not have enough data to verify VN in agent
2025-01-15 09:21:18,402 - DEBUG - VRF ids for VN ctest-vn-83625794: {}
2025-01-15 09:21:18,481 - DEBUG - Services list from nova: [