2025-05-15 12:41:03,277 - INFO - Domain Default found not creating
2025-05-15 12:41:03,439 - INFO - Project ctest-TestBasicPolicy-61872446 not found, creating it
2025-05-15 12:41:03,918 - INFO - Created Project:ctest-TestBasicPolicy-61872446, ID : da349cae-8baa-41a8-92a3-c35724898f43
2025-05-15 12:41:05,387 - INFO - ================================================================================
2025-05-15 12:41:05,387 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-15 12:41:05,387 - 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-05-15 12:41:05,647 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.0.0.48': '0'}} with
2025-05-15 12:41:05,647 - INFO - Initial checks done. Running the testcase now
2025-05-15 12:41:05,647 - INFO -
2025-05-15 12:41:06,225 - DEBUG - Response for create_network : {'network': {'id': 'eab6de5f-33ae-47e8-9dcd-39ece08ee13c', 'name': 'ctest-vn-91507151', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'project_id': 'da349cae8baa41a892a3c35724898f43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-vn-91507151'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 12:41:06,471 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c94e320e-2343-45a9-831d-f14f6925be0c', 'name': '', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'network_id': 'eab6de5f-33ae-47e8-9dcd-39ece08ee13c', 'ip_version': 4, 'cidr': '202.6.146.128/26', 'allocation_pools': [{'start': '202.6.146.130', 'end': '202.6.146.190'}], 'gateway_ip': '202.6.146.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.6.146.130', 'tags': [], 'project_id': 'da349cae8baa41a892a3c35724898f43'}}
2025-05-15 12:41:06,556 - INFO - Created VN ctest-vn-91507151
2025-05-15 12:41:06,609 - DEBUG - VN ctest-vn-91507151 UUID is eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:06,915 - DEBUG - Response for create_network : {'network': {'id': 'cb295624-4f6f-4e0a-a6fc-c97b44dffcfc', 'name': 'ctest-vn-35297158', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'project_id': 'da349cae8baa41a892a3c35724898f43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-vn-35297158'], 'port_security_enabled': True, 'description': ''}}
2025-05-15 12:41:07,191 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dda32ec-8c39-48f8-8f54-4c95c8f78a3d', 'name': '', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'network_id': 'cb295624-4f6f-4e0a-a6fc-c97b44dffcfc', 'ip_version': 4, 'cidr': '135.29.88.64/26', 'allocation_pools': [{'start': '135.29.88.66', 'end': '135.29.88.126'}], 'gateway_ip': '135.29.88.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.29.88.66', 'tags': [], 'project_id': 'da349cae8baa41a892a3c35724898f43'}}
2025-05-15 12:41:07,210 - INFO - Created VN ctest-vn-35297158
2025-05-15 12:41:07,265 - DEBUG - VN ctest-vn-35297158 UUID is cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:07,379 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151, 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-61872446:ctest-vn-35297158, 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-05-15 12:41:07,678 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eab6de5f-33ae-47e8-9dcd-39ece08ee13c', 'name': 'ctest-vn-91507151', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'project_id': 'da349cae8baa41a892a3c35724898f43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c94e320e-2343-45a9-831d-f14f6925be0c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-vn-91507151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-policy-allow-all-24468018']], 'subnet_ipam': [{'subnet_cidr': '202.6.146.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 12:41:07,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb295624-4f6f-4e0a-a6fc-c97b44dffcfc', 'name': 'ctest-vn-35297158', 'tenant_id': 'da349cae8baa41a892a3c35724898f43', 'project_id': 'da349cae8baa41a892a3c35724898f43', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7dda32ec-8c39-48f8-8f54-4c95c8f78a3d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-vn-35297158'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-policy-allow-all-24468018']], 'subnet_ipam': [{'subnet_cidr': '135.29.88.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-15 12:41:08,045 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-15 12:41:08,350 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-15 12:41:08,382 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d21abd5a-30cb-4523-b7d6-c3319995ded3
2025-05-15 12:41:08,395 - DEBUG - Requesting: http://10.0.0.48:8082/project/da349cae-8baa-41a8-92a3-c35724898f43
2025-05-15 12:41:08,472 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,483 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/76088106-b881-4a4a-a09f-9e7cae4436e0
2025-05-15 12:41:08,499 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/76088106-b881-4a4a-a09f-9e7cae4436e0
2025-05-15 12:41:08,508 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d15aa716-4e1b-4e40-af2c-08acc27c3ddd
2025-05-15 12:41:08,518 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 12:41:08,518 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,527 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/76088106-b881-4a4a-a09f-9e7cae4436e0
2025-05-15 12:41:08,545 - INFO - Verified VN network id 7 for VN eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,545 - INFO - Verifications in API Server for VN ctest-vn-91507151 passed
2025-05-15 12:41:08,545 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,564 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/76088106-b881-4a4a-a09f-9e7cae4436e0
2025-05-15 12:41:08,573 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/76088106-b881-4a4a-a09f-9e7cae4436e0
2025-05-15 12:41:08,582 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/d15aa716-4e1b-4e40-af2c-08acc27c3ddd
2025-05-15 12:41:08,597 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61872446', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16912949951106795496', 'uuid-lslong': '11370808323722895676'}, 'enable': 'true', 'created': '2025-05-15T12:41:06', 'last-modified': '2025-05-15T12:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.940408'}
2025-05-15 12:41:08,605 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-15 12:41:08,606 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91507151 passed
2025-05-15 12:41:08,606 - DEBUG - ====Verifying policy data for ctest-vn-91507151 in API_Server ======
2025-05-15 12:41:08,606 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-15 12:41:08,616 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d21abd5a-30cb-4523-b7d6-c3319995ded3
2025-05-15 12:41:08,628 - DEBUG - Requesting: http://10.0.0.48:8082/project/da349cae-8baa-41a8-92a3-c35724898f43
2025-05-15 12:41:08,705 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/eab6de5f-33ae-47e8-9dcd-39ece08ee13c
2025-05-15 12:41:08,716 - DEBUG - ==>Verifying data for policy with id: 462ae86e-b3cf-4eb4-94fc-3183a6c4a4f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-policy-allow-all-24468018']
2025-05-15 12:41:08,717 - INFO - VN ctest-vn-91507151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 12:41:08,717 - DEBUG - Verifying the vn in opserver
2025-05-15 12:41:08,717 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151 virtual network link through opserver 10.0.0.48
2025-05-15 12:41:08,717 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-15 12:41:09,017 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-15 12:41:12,076 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151 virtual network link through opserver 10.0.0.48
2025-05-15 12:41:12,076 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-15 12:41:12,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151?flat'}
2025-05-15 12:41:12,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-91507151 is found in opserver
2025-05-15 12:41:12,095 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 12:41:12,100 - DEBUG - VRF ids for VN ctest-vn-91507151: {}
2025-05-15 12:41:12,100 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-15 12:41:12,105 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d21abd5a-30cb-4523-b7d6-c3319995ded3
2025-05-15 12:41:12,115 - DEBUG - Requesting: http://10.0.0.48:8082/project/da349cae-8baa-41a8-92a3-c35724898f43
2025-05-15 12:41:12,194 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,208 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,217 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/59127212-fc70-4caa-badf-092b3442e10d
2025-05-15 12:41:12,224 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/59127212-fc70-4caa-badf-092b3442e10d
2025-05-15 12:41:12,232 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c0721a9d-bab4-4125-a657-d492fa8af7dd
2025-05-15 12:41:12,239 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 12:41:12,239 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,248 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/59127212-fc70-4caa-badf-092b3442e10d
2025-05-15 12:41:12,264 - INFO - Verified VN network id 8 for VN cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,264 - INFO - Verifications in API Server for VN ctest-vn-35297158 passed
2025-05-15 12:41:12,264 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,282 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/59127212-fc70-4caa-badf-092b3442e10d
2025-05-15 12:41:12,293 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/59127212-fc70-4caa-badf-092b3442e10d
2025-05-15 12:41:12,301 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/c0721a9d-bab4-4125-a657-d492fa8af7dd
2025-05-15 12:41:12,313 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-35297158', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61872446', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14639326777696013834', 'uuid-lslong': '12032713835700813052'}, 'enable': 'true', 'created': '2025-05-15T12:41:06', 'last-modified': '2025-05-15T12:41:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.464352'}
2025-05-15 12:41:12,321 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-15 12:41:12,321 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35297158 passed
2025-05-15 12:41:12,321 - DEBUG - ====Verifying policy data for ctest-vn-35297158 in API_Server ======
2025-05-15 12:41:12,321 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-05-15 12:41:12,327 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d21abd5a-30cb-4523-b7d6-c3319995ded3
2025-05-15 12:41:12,338 - DEBUG - Requesting: http://10.0.0.48:8082/project/da349cae-8baa-41a8-92a3-c35724898f43
2025-05-15 12:41:12,414 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/cb295624-4f6f-4e0a-a6fc-c97b44dffcfc
2025-05-15 12:41:12,423 - DEBUG - ==>Verifying data for policy with id: 462ae86e-b3cf-4eb4-94fc-3183a6c4a4f4, fqn: ['default-domain', 'ctest-TestBasicPolicy-61872446', 'ctest-policy-allow-all-24468018']
2025-05-15 12:41:12,423 - INFO - VN ctest-vn-35297158 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-15 12:41:12,423 - DEBUG - Verifying the vn in opserver
2025-05-15 12:41:12,423 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-35297158 virtual network link through opserver 10.0.0.48
2025-05-15 12:41:12,423 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-05-15 12:41:12,433 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-35297158', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-35297158?flat'}
2025-05-15 12:41:12,433 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61872446:ctest-vn-35297158 is found in opserver
2025-05-15 12:41:12,445 - DEBUG - Do not have enough data to verify VN in agent
2025-05-15 12:41:12,450 - DEBUG - VRF ids for VN ctest-vn-35297158: {}
2025-05-15 12:41:12,509 - DEBUG - Services list from nova: [