2025-03-28 22:37:57,859 - INFO - Domain Default found not creating
2025-03-28 22:37:57,999 - INFO - Project ctest-TestBasicPolicy-71824985 not found, creating it
2025-03-28 22:37:58,467 - INFO - Created Project:ctest-TestBasicPolicy-71824985, ID : 60ead431-1a7e-4312-ac6c-bfecb11af58e
2025-03-28 22:37:59,861 - INFO - ================================================================================
2025-03-28 22:37:59,861 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-28 22:37:59,861 - 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-28 22:38:00,122 - DEBUG - Nothing to compare xmpp stats {'10.0.0.34': {'10.20.0.10': '0'}} with
2025-03-28 22:38:00,122 - INFO - Initial checks done. Running the testcase now
2025-03-28 22:38:00,122 - INFO -
2025-03-28 22:38:00,904 - DEBUG - Response for create_network : {'network': {'id': '53d7e829-c6eb-4b0e-95ac-28e71c956bb0', 'name': 'ctest-vn-35534149', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'project_id': '60ead4311a7e4312ac6cbfecb11af58e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-vn-35534149'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 22:38:01,054 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c92932a3-6ecb-4bea-8366-16184b17f4e2', 'name': '', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'network_id': '53d7e829-c6eb-4b0e-95ac-28e71c956bb0', 'ip_version': 4, 'cidr': '73.255.90.64/26', 'allocation_pools': [{'start': '73.255.90.66', 'end': '73.255.90.126'}], 'gateway_ip': '73.255.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.255.90.66', 'tags': [], 'project_id': '60ead4311a7e4312ac6cbfecb11af58e'}}
2025-03-28 22:38:01,073 - INFO - Created VN ctest-vn-35534149
2025-03-28 22:38:01,128 - DEBUG - VN ctest-vn-35534149 UUID is 53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:01,419 - DEBUG - Response for create_network : {'network': {'id': 'afbd91bb-2865-4491-ab95-166de4280e28', 'name': 'ctest-vn-22131110', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'project_id': '60ead4311a7e4312ac6cbfecb11af58e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-vn-22131110'], 'port_security_enabled': True, 'description': ''}}
2025-03-28 22:38:01,586 - DEBUG - Response for create_subnet : {'subnet': {'id': '1bf54176-9025-4522-acca-5fc87e5d0a2f', 'name': '', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'network_id': 'afbd91bb-2865-4491-ab95-166de4280e28', 'ip_version': 4, 'cidr': '209.253.200.0/26', 'allocation_pools': [{'start': '209.253.200.2', 'end': '209.253.200.62'}], 'gateway_ip': '209.253.200.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.253.200.2', 'tags': [], 'project_id': '60ead4311a7e4312ac6cbfecb11af58e'}}
2025-03-28 22:38:01,607 - INFO - Created VN ctest-vn-22131110
2025-03-28 22:38:01,664 - DEBUG - VN ctest-vn-22131110 UUID is afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:01,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149, 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-71824985:ctest-vn-22131110, 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-28 22:38:02,122 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '53d7e829-c6eb-4b0e-95ac-28e71c956bb0', 'name': 'ctest-vn-35534149', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'project_id': '60ead4311a7e4312ac6cbfecb11af58e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c92932a3-6ecb-4bea-8366-16184b17f4e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-vn-35534149'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-policy-allow-all-97472807']], 'subnet_ipam': [{'subnet_cidr': '73.255.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 22:38:02,405 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'afbd91bb-2865-4491-ab95-166de4280e28', 'name': 'ctest-vn-22131110', 'tenant_id': '60ead4311a7e4312ac6cbfecb11af58e', 'project_id': '60ead4311a7e4312ac6cbfecb11af58e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1bf54176-9025-4522-acca-5fc87e5d0a2f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-vn-22131110'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-policy-allow-all-97472807']], 'subnet_ipam': [{'subnet_cidr': '209.253.200.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-28 22:38:02,556 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 22:38:02,853 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 22:38:02,890 - DEBUG - Requesting: http://10.0.0.34:8082/domain/0280b7f9-de13-442d-a946-39c31e2ef1b1
2025-03-28 22:38:02,903 - DEBUG - Requesting: http://10.0.0.34:8082/project/60ead431-1a7e-4312-ac6c-bfecb11af58e
2025-03-28 22:38:02,977 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:02,988 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:03,000 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cc273145-5144-4efa-9fbe-853948c51653
2025-03-28 22:38:03,010 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cc273145-5144-4efa-9fbe-853948c51653
2025-03-28 22:38:03,019 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d26ad1bb-71c0-4ba4-ad7e-af4f6350509d
2025-03-28 22:38:03,027 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 22:38:03,027 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:03,038 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cc273145-5144-4efa-9fbe-853948c51653
2025-03-28 22:38:03,054 - INFO - Verified VN network id 9 for VN 53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:03,054 - INFO - Verifications in API Server for VN ctest-vn-35534149 passed
2025-03-28 22:38:03,054 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:03,064 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cc273145-5144-4efa-9fbe-853948c51653
2025-03-28 22:38:03,071 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/cc273145-5144-4efa-9fbe-853948c51653
2025-03-28 22:38:03,078 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/d26ad1bb-71c0-4ba4-ad7e-af4f6350509d
2025-03-28 22:38:03,090 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71824985', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6041552691269421838', 'uuid-lslong': '10785040180727606192'}, 'enable': 'true', 'created': '2025-03-28T22:38:00', 'last-modified': '2025-03-28T22:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994625'}
2025-03-28 22:38:03,097 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-28 22:38:03,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35534149 passed
2025-03-28 22:38:03,097 - DEBUG - ====Verifying policy data for ctest-vn-35534149 in API_Server ======
2025-03-28 22:38:03,097 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 22:38:03,103 - DEBUG - Requesting: http://10.0.0.34:8082/domain/0280b7f9-de13-442d-a946-39c31e2ef1b1
2025-03-28 22:38:03,115 - DEBUG - Requesting: http://10.0.0.34:8082/project/60ead431-1a7e-4312-ac6c-bfecb11af58e
2025-03-28 22:38:03,191 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/53d7e829-c6eb-4b0e-95ac-28e71c956bb0
2025-03-28 22:38:03,201 - DEBUG - ==>Verifying data for policy with id: dbe5c16a-1000-419f-b49e-4e2e031b7a4c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-policy-allow-all-97472807']
2025-03-28 22:38:03,201 - INFO - VN ctest-vn-35534149 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 22:38:03,201 - DEBUG - Verifying the vn in opserver
2025-03-28 22:38:03,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149 virtual network link through opserver 10.0.0.34
2025-03-28 22:38:03,201 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 22:38:03,491 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 22:38:03,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149?flat'}
2025-03-28 22:38:03,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-35534149 is found in opserver
2025-03-28 22:38:03,557 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 22:38:03,563 - DEBUG - VRF ids for VN ctest-vn-35534149: {}
2025-03-28 22:38:03,563 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 22:38:03,569 - DEBUG - Requesting: http://10.0.0.34:8082/domain/0280b7f9-de13-442d-a946-39c31e2ef1b1
2025-03-28 22:38:03,582 - DEBUG - Requesting: http://10.0.0.34:8082/project/60ead431-1a7e-4312-ac6c-bfecb11af58e
2025-03-28 22:38:03,654 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,669 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,679 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/127cce02-c9b3-4540-b575-bcfdc7bf274a
2025-03-28 22:38:03,688 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/127cce02-c9b3-4540-b575-bcfdc7bf274a
2025-03-28 22:38:03,696 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7c17654f-2a5d-43a3-bf20-7616d21775df
2025-03-28 22:38:03,704 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 22:38:03,704 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,713 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/127cce02-c9b3-4540-b575-bcfdc7bf274a
2025-03-28 22:38:03,729 - INFO - Verified VN network id 10 for VN afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,729 - INFO - Verifications in API Server for VN ctest-vn-22131110 passed
2025-03-28 22:38:03,729 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,740 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/127cce02-c9b3-4540-b575-bcfdc7bf274a
2025-03-28 22:38:03,748 - DEBUG - Requesting: http://10.0.0.34:8082/routing-instance/127cce02-c9b3-4540-b575-bcfdc7bf274a
2025-03-28 22:38:03,755 - DEBUG - Requesting: http://10.0.0.34:8082/route-target/7c17654f-2a5d-43a3-bf20-7616d21775df
2025-03-28 22:38:03,768 - DEBUG - Control-node 10.0.0.34 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-22131110', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71824985', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12663437960258339985', 'uuid-lslong': '12363813013250641448'}, 'enable': 'true', 'created': '2025-03-28T22:38:01', 'last-modified': '2025-03-28T22:38:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432951'}
2025-03-28 22:38:03,774 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-28 22:38:03,774 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22131110 passed
2025-03-28 22:38:03,775 - DEBUG - ====Verifying policy data for ctest-vn-22131110 in API_Server ======
2025-03-28 22:38:03,775 - DEBUG - Requesting: http://10.0.0.34:8082/domains
2025-03-28 22:38:03,780 - DEBUG - Requesting: http://10.0.0.34:8082/domain/0280b7f9-de13-442d-a946-39c31e2ef1b1
2025-03-28 22:38:03,792 - DEBUG - Requesting: http://10.0.0.34:8082/project/60ead431-1a7e-4312-ac6c-bfecb11af58e
2025-03-28 22:38:03,867 - DEBUG - Requesting: http://10.0.0.34:8082/virtual-network/afbd91bb-2865-4491-ab95-166de4280e28
2025-03-28 22:38:03,877 - DEBUG - ==>Verifying data for policy with id: dbe5c16a-1000-419f-b49e-4e2e031b7a4c, fqn: ['default-domain', 'ctest-TestBasicPolicy-71824985', 'ctest-policy-allow-all-97472807']
2025-03-28 22:38:03,877 - INFO - VN ctest-vn-22131110 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-28 22:38:03,877 - DEBUG - Verifying the vn in opserver
2025-03-28 22:38:03,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-22131110 virtual network link through opserver 10.0.0.34
2025-03-28 22:38:03,877 - DEBUG - Requesting: http://10.0.0.34:8081/analytics/uves/virtual-networks
2025-03-28 22:38:03,888 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-22131110', 'href': 'http://10.0.0.34:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-22131110?flat'}
2025-03-28 22:38:03,888 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71824985:ctest-vn-22131110 is found in opserver
2025-03-28 22:38:03,898 - DEBUG - Do not have enough data to verify VN in agent
2025-03-28 22:38:03,904 - DEBUG - VRF ids for VN ctest-vn-22131110: {}
2025-03-28 22:38:03,961 - DEBUG - Services list from nova: [