2025-04-26 12:50:55,460 - INFO - Domain Default found not creating
2025-04-26 12:50:55,627 - INFO - Project ctest-TestBasicPolicy-49478633 not found, creating it
2025-04-26 12:50:56,118 - INFO - Created Project:ctest-TestBasicPolicy-49478633, ID : 7b154661-dbc6-48c8-99e8-26bdf767e5c9
2025-04-26 12:50:57,690 - INFO - ================================================================================
2025-04-26 12:50:57,690 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-26 12:50:57,690 - 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-26 12:50:57,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-04-26 12:50:57,951 - INFO - Initial checks done. Running the testcase now
2025-04-26 12:50:57,951 - INFO -
2025-04-26 12:50:58,555 - DEBUG - Response for create_network : {'network': {'id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'name': 'ctest-vn-26602617', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-26602617'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 12:50:58,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '40005b20-43d4-4ef5-bdb5-f73fcb2f739e', 'name': '', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'network_id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'ip_version': 4, 'cidr': '191.118.96.128/26', 'allocation_pools': [{'start': '191.118.96.130', 'end': '191.118.96.190'}], 'gateway_ip': '191.118.96.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '191.118.96.130', 'tags': [], 'project_id': '7b154661dbc648c899e826bdf767e5c9'}}
2025-04-26 12:50:58,773 - INFO - Created VN ctest-vn-26602617
2025-04-26 12:50:58,828 - DEBUG - VN ctest-vn-26602617 UUID is 42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:50:59,306 - DEBUG - Response for create_network : {'network': {'id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'name': 'ctest-vn-81548314', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-81548314'], 'port_security_enabled': True, 'description': ''}}
2025-04-26 12:50:59,531 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb8b594e-85a8-4e2f-9c3b-46caadea73ee', 'name': '', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'network_id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'ip_version': 4, 'cidr': '177.255.120.128/26', 'allocation_pools': [{'start': '177.255.120.130', 'end': '177.255.120.190'}], 'gateway_ip': '177.255.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.255.120.130', 'tags': [], 'project_id': '7b154661dbc648c899e826bdf767e5c9'}}
2025-04-26 12:50:59,549 - INFO - Created VN ctest-vn-81548314
2025-04-26 12:50:59,603 - DEBUG - VN ctest-vn-81548314 UUID is 2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:50:59,755 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617, 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-49478633:ctest-vn-81548314, 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-26 12:51:00,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42f650a3-49ec-4c91-bcb1-88f38fa36b58', 'name': 'ctest-vn-26602617', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40005b20-43d4-4ef5-bdb5-f73fcb2f739e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-26602617'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']], 'subnet_ipam': [{'subnet_cidr': '191.118.96.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 12:51:00,336 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b0959b7-8c23-4a2e-9552-7cb67ef6f158', 'name': 'ctest-vn-81548314', 'tenant_id': '7b154661dbc648c899e826bdf767e5c9', 'project_id': '7b154661dbc648c899e826bdf767e5c9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb8b594e-85a8-4e2f-9c3b-46caadea73ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-vn-81548314'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']], 'subnet_ipam': [{'subnet_cidr': '177.255.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-26 12:51:00,488 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 12:51:00,824 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 12:51:00,852 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb
2025-04-26 12:51:00,867 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9
2025-04-26 12:51:00,945 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:00,958 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:00,968 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f
2025-04-26 12:51:00,975 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f
2025-04-26 12:51:00,982 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/498e76c1-9db0-49e7-bb76-0a94cbee0a9a
2025-04-26 12:51:00,989 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 12:51:00,989 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:00,998 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f
2025-04-26 12:51:01,012 - INFO - Verified VN network id 8 for VN 42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:01,012 - INFO - Verifications in API Server for VN ctest-vn-26602617 passed
2025-04-26 12:51:01,012 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:01,022 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f
2025-04-26 12:51:01,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d4c9cc26-818b-4834-b5fe-14e95467ce6f
2025-04-26 12:51:01,035 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/498e76c1-9db0-49e7-bb76-0a94cbee0a9a
2025-04-26 12:51:01,047 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49478633', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4825132713024179345', 'uuid-lslong': '13596799329676520280'}, 'enable': 'true', 'created': '2025-04-26T12:50:58', 'last-modified': '2025-04-26T12:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.010983'}
2025-04-26 12:51:01,054 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-26 12:51:01,054 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26602617 passed
2025-04-26 12:51:01,054 - DEBUG - ====Verifying policy data for ctest-vn-26602617 in API_Server ======
2025-04-26 12:51:01,054 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 12:51:01,060 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb
2025-04-26 12:51:01,071 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9
2025-04-26 12:51:01,147 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/42f650a3-49ec-4c91-bcb1-88f38fa36b58
2025-04-26 12:51:01,159 - DEBUG - ==>Verifying data for policy with id: 762a6934-b3fb-4348-8765-9cb1aafeb4bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']
2025-04-26 12:51:01,159 - INFO - VN ctest-vn-26602617 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 12:51:01,159 - DEBUG - Verifying the vn in opserver
2025-04-26 12:51:01,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617 virtual network link through opserver 10.0.0.254
2025-04-26 12:51:01,159 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 12:51:01,491 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 12:51:01,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617?flat'}
2025-04-26 12:51:01,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-26602617 is found in opserver
2025-04-26 12:51:01,559 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 12:51:01,564 - DEBUG - VRF ids for VN ctest-vn-26602617: {}
2025-04-26 12:51:01,564 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 12:51:01,571 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb
2025-04-26 12:51:01,583 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9
2025-04-26 12:51:01,660 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,687 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40
2025-04-26 12:51:01,695 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40
2025-04-26 12:51:01,702 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/03d78102-b906-4983-81ae-ae5a14351b48
2025-04-26 12:51:01,709 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 12:51:01,709 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,719 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40
2025-04-26 12:51:01,734 - INFO - Verified VN network id 9 for VN 2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,734 - INFO - Verifications in API Server for VN ctest-vn-81548314 passed
2025-04-26 12:51:01,734 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,745 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40
2025-04-26 12:51:01,752 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/a4e24df1-46ae-4f33-bbc7-f69993f23e40
2025-04-26 12:51:01,760 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/03d78102-b906-4983-81ae-ae5a14351b48
2025-04-26 12:51:01,772 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-49478633', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3101108463286307374', 'uuid-lslong': '10759799582997541208'}, 'enable': 'true', 'created': '2025-04-26T12:50:59', 'last-modified': '2025-04-26T12:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.503720'}
2025-04-26 12:51:01,779 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-26 12:51:01,779 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81548314 passed
2025-04-26 12:51:01,779 - DEBUG - ====Verifying policy data for ctest-vn-81548314 in API_Server ======
2025-04-26 12:51:01,780 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-04-26 12:51:01,786 - DEBUG - Requesting: http://10.0.0.254:8082/domain/73328cff-782e-4300-b091-c0c789bd5cfb
2025-04-26 12:51:01,799 - DEBUG - Requesting: http://10.0.0.254:8082/project/7b154661-dbc6-48c8-99e8-26bdf767e5c9
2025-04-26 12:51:01,870 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/2b0959b7-8c23-4a2e-9552-7cb67ef6f158
2025-04-26 12:51:01,881 - DEBUG - ==>Verifying data for policy with id: 762a6934-b3fb-4348-8765-9cb1aafeb4bf, fqn: ['default-domain', 'ctest-TestBasicPolicy-49478633', 'ctest-policy-allow-all-23228237']
2025-04-26 12:51:01,881 - INFO - VN ctest-vn-81548314 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-26 12:51:01,881 - DEBUG - Verifying the vn in opserver
2025-04-26 12:51:01,881 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314 virtual network link through opserver 10.0.0.254
2025-04-26 12:51:01,881 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-04-26 12:51:01,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314?flat'}
2025-04-26 12:51:01,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-49478633:ctest-vn-81548314 is found in opserver
2025-04-26 12:51:01,903 - DEBUG - Do not have enough data to verify VN in agent
2025-04-26 12:51:01,909 - DEBUG - VRF ids for VN ctest-vn-81548314: {}
2025-04-26 12:51:01,964 - DEBUG - Services list from nova: [