2025-04-24 20:18:43,888 - INFO - Domain Default found not creating
2025-04-24 20:18:44,004 - INFO - Project ctest-TestBasicPolicy-39723700 not found, creating it
2025-04-24 20:18:44,510 - INFO - Created Project:ctest-TestBasicPolicy-39723700, ID : 630ec0b3-3b2e-4229-a4f9-0c1f2b8e85d9
2025-04-24 20:18:45,847 - INFO - ================================================================================
2025-04-24 20:18:45,847 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 20:18:45,847 - 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-04-24 20:18:46,099 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-24 20:18:46,099 - INFO - Initial checks done. Running the testcase now
2025-04-24 20:18:46,099 - INFO -
2025-04-24 20:18:46,618 - DEBUG - Response for create_network : {'network': {'id': 'af3c1b41-a398-439e-aebe-51ee4ee1bdf8', 'name': 'ctest-vn-32751760', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-vn-32751760'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 20:18:46,778 - DEBUG - Response for create_subnet : {'subnet': {'id': '6177a43b-0ee4-45f1-aaa9-53b07963415e', 'name': '', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'network_id': 'af3c1b41-a398-439e-aebe-51ee4ee1bdf8', 'ip_version': 4, 'cidr': '155.116.155.64/26', 'allocation_pools': [{'start': '155.116.155.66', 'end': '155.116.155.126'}], 'gateway_ip': '155.116.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.116.155.66', 'tags': [], 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9'}}
2025-04-24 20:18:46,794 - INFO - Created VN ctest-vn-32751760
2025-04-24 20:18:46,850 - DEBUG - VN ctest-vn-32751760 UUID is af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:47,434 - DEBUG - Response for create_network : {'network': {'id': '8aff20ea-2bbf-45ba-bfec-8a7adfa6465d', 'name': 'ctest-vn-37678242', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-vn-37678242'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 20:18:47,815 - DEBUG - Response for create_subnet : {'subnet': {'id': '0274c9a4-c800-4f6e-aeeb-2eb4ec6ba145', 'name': '', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'network_id': '8aff20ea-2bbf-45ba-bfec-8a7adfa6465d', 'ip_version': 4, 'cidr': '174.166.85.0/26', 'allocation_pools': [{'start': '174.166.85.2', 'end': '174.166.85.62'}], 'gateway_ip': '174.166.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.166.85.2', 'tags': [], 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9'}}
2025-04-24 20:18:47,837 - INFO - Created VN ctest-vn-37678242
2025-04-24 20:18:47,890 - DEBUG - VN ctest-vn-37678242 UUID is 8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:48,046 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760, 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-39723700:ctest-vn-37678242, 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-04-24 20:18:48,327 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'af3c1b41-a398-439e-aebe-51ee4ee1bdf8', 'name': 'ctest-vn-32751760', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6177a43b-0ee4-45f1-aaa9-53b07963415e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-vn-32751760'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-policy-allow-all-00976486']], 'subnet_ipam': [{'subnet_cidr': '155.116.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 20:18:48,548 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8aff20ea-2bbf-45ba-bfec-8a7adfa6465d', 'name': 'ctest-vn-37678242', 'tenant_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'project_id': '630ec0b33b2e4229a4f90c1f2b8e85d9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0274c9a4-c800-4f6e-aeeb-2eb4ec6ba145'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-vn-37678242'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-policy-allow-all-00976486']], 'subnet_ipam': [{'subnet_cidr': '174.166.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 20:18:48,702 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 20:18:48,992 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 20:18:49,016 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a6ff38ab-ea39-4be4-9fd2-f7a3f8c1ba7f
2025-04-24 20:18:49,028 - DEBUG - Requesting: http://10.0.0.254:8082/project/630ec0b3-3b2e-4229-a4f9-0c1f2b8e85d9
2025-04-24 20:18:49,099 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,111 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,120 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9c530b1-18ba-4fb0-8de3-52358a5c8a00
2025-04-24 20:18:49,126 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9c530b1-18ba-4fb0-8de3-52358a5c8a00
2025-04-24 20:18:49,132 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/77d5af84-9f64-473a-a4fb-1f9d70b3935c
2025-04-24 20:18:49,138 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 20:18:49,138 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,146 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9c530b1-18ba-4fb0-8de3-52358a5c8a00
2025-04-24 20:18:49,160 - INFO - Verified VN network id 9 for VN af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,160 - INFO - Verifications in API Server for VN ctest-vn-32751760 passed
2025-04-24 20:18:49,160 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,173 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9c530b1-18ba-4fb0-8de3-52358a5c8a00
2025-04-24 20:18:49,181 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d9c530b1-18ba-4fb0-8de3-52358a5c8a00
2025-04-24 20:18:49,189 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/77d5af84-9f64-473a-a4fb-1f9d70b3935c
2025-04-24 20:18:49,203 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39723700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12626997423971517342', 'uuid-lslong': '12591591692141968888'}, 'enable': 'true', 'created': '2025-04-24T20:18:46', 'last-modified': '2025-04-24T20:18:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893292'}
2025-04-24 20:18:49,211 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 20:18:49,211 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32751760 passed
2025-04-24 20:18:49,211 - DEBUG - ====Verifying policy data for ctest-vn-32751760 in API_Server ======
2025-04-24 20:18:49,212 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 20:18:49,217 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a6ff38ab-ea39-4be4-9fd2-f7a3f8c1ba7f
2025-04-24 20:18:49,230 - DEBUG - Requesting: http://10.0.0.254:8082/project/630ec0b3-3b2e-4229-a4f9-0c1f2b8e85d9
2025-04-24 20:18:49,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/af3c1b41-a398-439e-aebe-51ee4ee1bdf8
2025-04-24 20:18:49,314 - DEBUG - ==>Verifying data for policy with id: 202400c0-1449-4e5a-a278-553cb6a7ed5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-policy-allow-all-00976486']
2025-04-24 20:18:49,314 - INFO - VN ctest-vn-32751760 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 20:18:49,314 - DEBUG - Verifying the vn in opserver
2025-04-24 20:18:49,314 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760 virtual network link through opserver 10.0.0.254
2025-04-24 20:18:49,314 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 20:18:49,600 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 20:18:49,647 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760?flat'}
2025-04-24 20:18:49,647 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-32751760 is found in opserver
2025-04-24 20:18:49,657 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 20:18:49,662 - DEBUG - VRF ids for VN ctest-vn-32751760: {}
2025-04-24 20:18:49,662 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 20:18:49,667 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a6ff38ab-ea39-4be4-9fd2-f7a3f8c1ba7f
2025-04-24 20:18:49,678 - DEBUG - Requesting: http://10.0.0.254:8082/project/630ec0b3-3b2e-4229-a4f9-0c1f2b8e85d9
2025-04-24 20:18:49,752 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,763 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,771 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf3fe54-f435-4a01-946c-da14538ce76b
2025-04-24 20:18:49,778 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf3fe54-f435-4a01-946c-da14538ce76b
2025-04-24 20:18:49,784 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fb39e850-8ba1-44fe-ac54-d55892f2a4bc
2025-04-24 20:18:49,789 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 20:18:49,789 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,797 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf3fe54-f435-4a01-946c-da14538ce76b
2025-04-24 20:18:49,809 - INFO - Verified VN network id 10 for VN 8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,809 - INFO - Verifications in API Server for VN ctest-vn-37678242 passed
2025-04-24 20:18:49,809 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,817 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf3fe54-f435-4a01-946c-da14538ce76b
2025-04-24 20:18:49,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/8cf3fe54-f435-4a01-946c-da14538ce76b
2025-04-24 20:18:49,828 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fb39e850-8ba1-44fe-ac54-d55892f2a4bc
2025-04-24 20:18:49,839 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-37678242', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39723700', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10015760286423664058', 'uuid-lslong': '13829580816090809949'}, 'enable': 'true', 'created': '2025-04-24T20:18:47', 'last-modified': '2025-04-24T20:18:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308133'}
2025-04-24 20:18:49,844 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 20:18:49,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37678242 passed
2025-04-24 20:18:49,844 - DEBUG - ====Verifying policy data for ctest-vn-37678242 in API_Server ======
2025-04-24 20:18:49,845 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-24 20:18:49,849 - DEBUG - Requesting: http://10.0.0.254:8082/domain/a6ff38ab-ea39-4be4-9fd2-f7a3f8c1ba7f
2025-04-24 20:18:49,859 - DEBUG - Requesting: http://10.0.0.254:8082/project/630ec0b3-3b2e-4229-a4f9-0c1f2b8e85d9
2025-04-24 20:18:49,931 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8aff20ea-2bbf-45ba-bfec-8a7adfa6465d
2025-04-24 20:18:49,942 - DEBUG - ==>Verifying data for policy with id: 202400c0-1449-4e5a-a278-553cb6a7ed5e, fqn: ['default-domain', 'ctest-TestBasicPolicy-39723700', 'ctest-policy-allow-all-00976486']
2025-04-24 20:18:49,942 - INFO - VN ctest-vn-37678242 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 20:18:49,942 - DEBUG - Verifying the vn in opserver
2025-04-24 20:18:49,942 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-37678242 virtual network link through opserver 10.0.0.254
2025-04-24 20:18:49,942 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-24 20:18:49,952 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-37678242', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-37678242?flat'}
2025-04-24 20:18:49,952 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39723700:ctest-vn-37678242 is found in opserver
2025-04-24 20:18:49,965 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 20:18:49,970 - DEBUG - VRF ids for VN ctest-vn-37678242: {}
2025-04-24 20:18:50,018 - DEBUG - Services list from nova: [