2025-03-22 09:27:43,645 - INFO - Domain Default found not creating
2025-03-22 09:27:43,805 - INFO - Project ctest-TestBasicPolicy-28198960 not found, creating it
2025-03-22 09:27:44,297 - INFO - Created Project:ctest-TestBasicPolicy-28198960, ID : 694e0a28-2e4d-4a06-9fd2-dbec493fe604
2025-03-22 09:27:45,941 - INFO - ================================================================================
2025-03-22 09:27:45,941 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-22 09:27:45,941 - 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-03-22 09:27:46,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with
2025-03-22 09:27:46,212 - INFO - Initial checks done. Running the testcase now
2025-03-22 09:27:46,212 - INFO -
2025-03-22 09:27:46,828 - DEBUG - Response for create_network : {'network': {'id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'name': 'ctest-vn-45692452', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-45692452'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:47,011 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b5cf317-0d38-4baf-b6ae-2e9a2b2c2e4a', 'name': '', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'network_id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'ip_version': 4, 'cidr': '107.140.170.64/26', 'allocation_pools': [{'start': '107.140.170.66', 'end': '107.140.170.126'}], 'gateway_ip': '107.140.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.140.170.66', 'tags': [], 'project_id': '694e0a282e4d4a069fd2dbec493fe604'}}
2025-03-22 09:27:47,037 - INFO - Created VN ctest-vn-45692452
2025-03-22 09:27:47,089 - DEBUG - VN ctest-vn-45692452 UUID is e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:47,417 - DEBUG - Response for create_network : {'network': {'id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'name': 'ctest-vn-97599131', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-97599131'], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:47,785 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe90be29-7c76-47bc-b56b-63ffe9b79561', 'name': '', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'network_id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'ip_version': 4, 'cidr': '58.20.219.192/26', 'allocation_pools': [{'start': '58.20.219.194', 'end': '58.20.219.254'}], 'gateway_ip': '58.20.219.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.20.219.194', 'tags': [], 'project_id': '694e0a282e4d4a069fd2dbec493fe604'}}
2025-03-22 09:27:47,816 - INFO - Created VN ctest-vn-97599131
2025-03-22 09:27:47,889 - DEBUG - VN ctest-vn-97599131 UUID is b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:48,068 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452, 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-28198960:ctest-vn-97599131, 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-03-22 09:27:48,579 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0fb1502-4f8a-4195-92f3-c16302dc125f', 'name': 'ctest-vn-45692452', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b5cf317-0d38-4baf-b6ae-2e9a2b2c2e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-45692452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']], 'subnet_ipam': [{'subnet_cidr': '107.140.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:48,823 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b3622144-c856-4bee-a36a-5b07c1fb91ca', 'name': 'ctest-vn-97599131', 'tenant_id': '694e0a282e4d4a069fd2dbec493fe604', 'project_id': '694e0a282e4d4a069fd2dbec493fe604', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe90be29-7c76-47bc-b56b-63ffe9b79561'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-vn-97599131'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']], 'subnet_ipam': [{'subnet_cidr': '58.20.219.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-22 09:27:48,957 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-22 09:27:49,301 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-22 09:27:49,333 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d
2025-03-22 09:27:49,351 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604
2025-03-22 09:27:49,437 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,450 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,462 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078
2025-03-22 09:27:49,471 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078
2025-03-22 09:27:49,481 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/2f3c0a8e-0dbd-472f-8421-e1b96340f8c9
2025-03-22 09:27:49,489 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:27:49,489 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,500 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078
2025-03-22 09:27:49,517 - INFO - Verified VN network id 9 for VN e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,517 - INFO - Verifications in API Server for VN ctest-vn-45692452 passed
2025-03-22 09:27:49,517 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,528 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078
2025-03-22 09:27:49,537 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/e0a639f9-7e86-4ad3-a474-1082faf5f078
2025-03-22 09:27:49,545 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/2f3c0a8e-0dbd-472f-8421-e1b96340f8c9
2025-03-22 09:27:49,562 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28198960', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16211574383318811029', 'uuid-lslong': '10589019779872068191'}, 'enable': 'true', 'created': '2025-03-22T09:27:46', 'last-modified': '2025-03-22T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.009192'}
2025-03-22 09:27:49,572 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-22 09:27:49,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45692452 passed
2025-03-22 09:27:49,572 - DEBUG - ====Verifying policy data for ctest-vn-45692452 in API_Server ======
2025-03-22 09:27:49,572 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-22 09:27:49,580 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d
2025-03-22 09:27:49,596 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604
2025-03-22 09:27:49,682 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e0fb1502-4f8a-4195-92f3-c16302dc125f
2025-03-22 09:27:49,697 - DEBUG - ==>Verifying data for policy with id: 8dbae5e0-411b-484a-9051-4fb0db482c1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']
2025-03-22 09:27:49,697 - INFO - VN ctest-vn-45692452 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:27:49,697 - DEBUG - Verifying the vn in opserver
2025-03-22 09:27:49,697 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452 virtual network link through opserver 10.0.0.37
2025-03-22 09:27:49,698 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-22 09:27:50,039 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-22 09:27:50,106 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452?flat'}
2025-03-22 09:27:50,106 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-45692452 is found in opserver
2025-03-22 09:27:50,121 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:27:50,129 - DEBUG - VRF ids for VN ctest-vn-45692452: {}
2025-03-22 09:27:50,129 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-22 09:27:50,137 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d
2025-03-22 09:27:50,153 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604
2025-03-22 09:27:50,228 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,243 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,255 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467
2025-03-22 09:27:50,265 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467
2025-03-22 09:27:50,274 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/0aaf1b63-cd5f-4563-8267-8db31344f052
2025-03-22 09:27:50,284 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:27:50,284 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,296 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467
2025-03-22 09:27:50,315 - INFO - Verified VN network id 10 for VN b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,315 - INFO - Verifications in API Server for VN ctest-vn-97599131 passed
2025-03-22 09:27:50,315 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,327 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467
2025-03-22 09:27:50,335 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/06e03698-d50d-4267-9b30-9e0bc1f3c467
2025-03-22 09:27:50,346 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/0aaf1b63-cd5f-4563-8267-8db31344f052
2025-03-22 09:27:50,360 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28198960', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925930459809336302', 'uuid-lslong': '11775324264590971338'}, 'enable': 'true', 'created': '2025-03-22T09:27:47', 'last-modified': '2025-03-22T09:27:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.560860'}
2025-03-22 09:27:50,368 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-22 09:27:50,368 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97599131 passed
2025-03-22 09:27:50,368 - DEBUG - ====Verifying policy data for ctest-vn-97599131 in API_Server ======
2025-03-22 09:27:50,368 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-22 09:27:50,375 - DEBUG - Requesting: http://10.0.0.37:8082/domain/79004b2f-1fa2-4c41-a951-5e76273c3c8d
2025-03-22 09:27:50,387 - DEBUG - Requesting: http://10.0.0.37:8082/project/694e0a28-2e4d-4a06-9fd2-dbec493fe604
2025-03-22 09:27:50,465 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/b3622144-c856-4bee-a36a-5b07c1fb91ca
2025-03-22 09:27:50,478 - DEBUG - ==>Verifying data for policy with id: 8dbae5e0-411b-484a-9051-4fb0db482c1f, fqn: ['default-domain', 'ctest-TestBasicPolicy-28198960', 'ctest-policy-allow-all-32243309']
2025-03-22 09:27:50,478 - INFO - VN ctest-vn-97599131 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-22 09:27:50,478 - DEBUG - Verifying the vn in opserver
2025-03-22 09:27:50,478 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131 virtual network link through opserver 10.0.0.37
2025-03-22 09:27:50,478 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-22 09:27:50,493 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131?flat'}
2025-03-22 09:27:50,493 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28198960:ctest-vn-97599131 is found in opserver
2025-03-22 09:27:50,507 - DEBUG - Do not have enough data to verify VN in agent
2025-03-22 09:27:50,513 - DEBUG - VRF ids for VN ctest-vn-97599131: {}
2025-03-22 09:27:50,581 - DEBUG - Services list from nova: [