2025-08-08 18:20:00,997 - INFO - Domain Default found not creating
2025-08-08 18:20:01,126 - INFO - Project ctest-TestBasicPolicy-48223114 not found, creating it
2025-08-08 18:20:01,605 - INFO - Created Project:ctest-TestBasicPolicy-48223114, ID : 001f5b06-b6d0-498d-989b-797a023a00d1
2025-08-08 18:20:02,919 - INFO - ================================================================================
2025-08-08 18:20:02,919 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-08 18:20:02,919 - 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-08-08 18:20:03,181 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with
2025-08-08 18:20:03,181 - INFO - Initial checks done. Running the testcase now
2025-08-08 18:20:03,182 - INFO -
2025-08-08 18:20:03,737 - DEBUG - Response for create_network : {'network': {'id': 'd3c18d7b-cab4-4667-b8d4-363145feef7c', 'name': 'ctest-vn-53462925', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'project_id': '001f5b06b6d0498d989b797a023a00d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-vn-53462925'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 18:20:03,953 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b045997-203f-43f2-addc-0ad457878966', 'name': '', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'network_id': 'd3c18d7b-cab4-4667-b8d4-363145feef7c', 'ip_version': 4, 'cidr': '87.56.99.0/26', 'allocation_pools': [{'start': '87.56.99.2', 'end': '87.56.99.62'}], 'gateway_ip': '87.56.99.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.56.99.2', 'tags': [], 'project_id': '001f5b06b6d0498d989b797a023a00d1'}}
2025-08-08 18:20:03,970 - INFO - Created VN ctest-vn-53462925
2025-08-08 18:20:04,020 - DEBUG - VN ctest-vn-53462925 UUID is d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:04,348 - DEBUG - Response for create_network : {'network': {'id': '23457120-e18a-41e2-a580-acccd8407ed3', 'name': 'ctest-vn-73734252', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'project_id': '001f5b06b6d0498d989b797a023a00d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-vn-73734252'], 'port_security_enabled': True, 'description': ''}}
2025-08-08 18:20:04,530 - DEBUG - Response for create_subnet : {'subnet': {'id': '1ae662ca-6189-4a89-bbcd-966e53fd9b93', 'name': '', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'network_id': '23457120-e18a-41e2-a580-acccd8407ed3', 'ip_version': 4, 'cidr': '116.148.236.0/26', 'allocation_pools': [{'start': '116.148.236.2', 'end': '116.148.236.62'}], 'gateway_ip': '116.148.236.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.148.236.2', 'tags': [], 'project_id': '001f5b06b6d0498d989b797a023a00d1'}}
2025-08-08 18:20:04,551 - INFO - Created VN ctest-vn-73734252
2025-08-08 18:20:04,600 - DEBUG - VN ctest-vn-73734252 UUID is 23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:04,748 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925, 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-48223114:ctest-vn-73734252, 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-08-08 18:20:05,028 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd3c18d7b-cab4-4667-b8d4-363145feef7c', 'name': 'ctest-vn-53462925', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'project_id': '001f5b06b6d0498d989b797a023a00d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b045997-203f-43f2-addc-0ad457878966'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-vn-53462925'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-policy-allow-all-49160617']], 'subnet_ipam': [{'subnet_cidr': '87.56.99.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 18:20:05,243 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23457120-e18a-41e2-a580-acccd8407ed3', 'name': 'ctest-vn-73734252', 'tenant_id': '001f5b06b6d0498d989b797a023a00d1', 'project_id': '001f5b06b6d0498d989b797a023a00d1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1ae662ca-6189-4a89-bbcd-966e53fd9b93'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-vn-73734252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-policy-allow-all-49160617']], 'subnet_ipam': [{'subnet_cidr': '116.148.236.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-08 18:20:05,429 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-08 18:20:05,720 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-08 18:20:05,743 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727
2025-08-08 18:20:05,753 - DEBUG - Requesting: http://10.0.0.50:8082/project/001f5b06-b6d0-498d-989b-797a023a00d1
2025-08-08 18:20:05,824 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,832 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,839 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b76e7afa-727f-4182-a2f0-396a61de3416
2025-08-08 18:20:05,845 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b76e7afa-727f-4182-a2f0-396a61de3416
2025-08-08 18:20:05,850 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0d9470b3-55fe-470b-b532-2da42063dbda
2025-08-08 18:20:05,855 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 18:20:05,855 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,862 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b76e7afa-727f-4182-a2f0-396a61de3416
2025-08-08 18:20:05,872 - INFO - Verified VN network id 11 for VN d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,872 - INFO - Verifications in API Server for VN ctest-vn-53462925 passed
2025-08-08 18:20:05,872 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,879 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b76e7afa-727f-4182-a2f0-396a61de3416
2025-08-08 18:20:05,883 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b76e7afa-727f-4182-a2f0-396a61de3416
2025-08-08 18:20:05,889 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0d9470b3-55fe-470b-b532-2da42063dbda
2025-08-08 18:20:05,898 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48223114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15258632575329257063', 'uuid-lslong': '13318329583297032060'}, 'enable': 'true', 'created': '2025-08-08T18:20:03', 'last-modified': '2025-08-08T18:20:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889356'}
2025-08-08 18:20:05,903 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-08 18:20:05,903 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53462925 passed
2025-08-08 18:20:05,903 - DEBUG - ====Verifying policy data for ctest-vn-53462925 in API_Server ======
2025-08-08 18:20:05,903 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-08 18:20:05,907 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727
2025-08-08 18:20:05,916 - DEBUG - Requesting: http://10.0.0.50:8082/project/001f5b06-b6d0-498d-989b-797a023a00d1
2025-08-08 18:20:05,981 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d3c18d7b-cab4-4667-b8d4-363145feef7c
2025-08-08 18:20:05,991 - DEBUG - ==>Verifying data for policy with id: 67a6e922-2a7c-4dce-9569-fbafe24a7cad, fqn: ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-policy-allow-all-49160617']
2025-08-08 18:20:05,991 - INFO - VN ctest-vn-53462925 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 18:20:05,991 - DEBUG - Verifying the vn in opserver
2025-08-08 18:20:05,991 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925 virtual network link through opserver 10.0.0.50
2025-08-08 18:20:05,991 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-08 18:20:06,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-08 18:20:06,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925?flat'}
2025-08-08 18:20:06,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-53462925 is found in opserver
2025-08-08 18:20:06,336 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 18:20:06,341 - DEBUG - VRF ids for VN ctest-vn-53462925: {}
2025-08-08 18:20:06,341 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-08 18:20:06,346 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727
2025-08-08 18:20:06,356 - DEBUG - Requesting: http://10.0.0.50:8082/project/001f5b06-b6d0-498d-989b-797a023a00d1
2025-08-08 18:20:06,426 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,436 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,443 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4c4d571-61d0-4514-a0bb-778e2a151b4a
2025-08-08 18:20:06,448 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4c4d571-61d0-4514-a0bb-778e2a151b4a
2025-08-08 18:20:06,453 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2f2a2b75-5c2c-4110-9b45-a574e235f614
2025-08-08 18:20:06,457 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 18:20:06,457 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4c4d571-61d0-4514-a0bb-778e2a151b4a
2025-08-08 18:20:06,474 - INFO - Verified VN network id 12 for VN 23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,474 - INFO - Verifications in API Server for VN ctest-vn-73734252 passed
2025-08-08 18:20:06,474 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,481 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4c4d571-61d0-4514-a0bb-778e2a151b4a
2025-08-08 18:20:06,486 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/b4c4d571-61d0-4514-a0bb-778e2a151b4a
2025-08-08 18:20:06,492 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/2f2a2b75-5c2c-4110-9b45-a574e235f614
2025-08-08 18:20:06,502 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-73734252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48223114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2541561950757339618', 'uuid-lslong': '11925721809078484691'}, 'enable': 'true', 'created': '2025-08-08T18:20:04', 'last-modified': '2025-08-08T18:20:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.275604'}
2025-08-08 18:20:06,507 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-08 18:20:06,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73734252 passed
2025-08-08 18:20:06,507 - DEBUG - ====Verifying policy data for ctest-vn-73734252 in API_Server ======
2025-08-08 18:20:06,507 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-08-08 18:20:06,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727
2025-08-08 18:20:06,519 - DEBUG - Requesting: http://10.0.0.50:8082/project/001f5b06-b6d0-498d-989b-797a023a00d1
2025-08-08 18:20:06,592 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/23457120-e18a-41e2-a580-acccd8407ed3
2025-08-08 18:20:06,608 - DEBUG - ==>Verifying data for policy with id: 67a6e922-2a7c-4dce-9569-fbafe24a7cad, fqn: ['default-domain', 'ctest-TestBasicPolicy-48223114', 'ctest-policy-allow-all-49160617']
2025-08-08 18:20:06,608 - INFO - VN ctest-vn-73734252 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-08 18:20:06,608 - DEBUG - Verifying the vn in opserver
2025-08-08 18:20:06,608 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-73734252 virtual network link through opserver 10.0.0.50
2025-08-08 18:20:06,608 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-08-08 18:20:06,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-73734252', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-73734252?flat'}
2025-08-08 18:20:06,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48223114:ctest-vn-73734252 is found in opserver
2025-08-08 18:20:06,625 - DEBUG - Do not have enough data to verify VN in agent
2025-08-08 18:20:06,629 - DEBUG - VRF ids for VN ctest-vn-73734252: {}
2025-08-08 18:20:06,676 - DEBUG - Services list from nova: [