2024-09-17 07:08:33,313 - INFO - Domain Default found not creating
2024-09-17 07:08:33,497 - INFO - Project ctest-TestBasicPolicy-54832642 not found, creating it
2024-09-17 07:08:34,005 - INFO - Created Project:ctest-TestBasicPolicy-54832642, ID : d6342153-6841-49c6-b717-c70dd8b85017
2024-09-17 07:08:35,692 - INFO - ================================================================================
2024-09-17 07:08:35,692 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-17 07:08:35,692 - 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
2024-09-17 07:08:35,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.7': '0'}} with
2024-09-17 07:08:35,962 - INFO - Initial checks done. Running the testcase now
2024-09-17 07:08:35,962 - INFO -
2024-09-17 07:08:36,621 - DEBUG - Response for create_network : {'network': {'id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'name': 'ctest-vn-95443800', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-95443800'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 07:08:36,852 - DEBUG - Response for create_subnet : {'subnet': {'id': '5fe8347a-7425-4d3b-a639-dd4262632300', 'name': '', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'network_id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'ip_version': 4, 'cidr': '215.43.52.128/26', 'allocation_pools': [{'start': '215.43.52.130', 'end': '215.43.52.190'}], 'gateway_ip': '215.43.52.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.43.52.130', 'tags': [], 'project_id': 'd6342153684149c6b717c70dd8b85017'}}
2024-09-17 07:08:36,874 - INFO - Created VN ctest-vn-95443800
2024-09-17 07:08:36,933 - DEBUG - VN ctest-vn-95443800 UUID is d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:37,293 - DEBUG - Response for create_network : {'network': {'id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'name': 'ctest-vn-86882117', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-86882117'], 'port_security_enabled': True, 'description': ''}}
2024-09-17 07:08:37,485 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6c49ff5-9031-4986-822f-0b03160519ba', 'name': '', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'network_id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'ip_version': 4, 'cidr': '79.143.160.64/26', 'allocation_pools': [{'start': '79.143.160.66', 'end': '79.143.160.126'}], 'gateway_ip': '79.143.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '79.143.160.66', 'tags': [], 'project_id': 'd6342153684149c6b717c70dd8b85017'}}
2024-09-17 07:08:37,507 - INFO - Created VN ctest-vn-86882117
2024-09-17 07:08:37,565 - DEBUG - VN ctest-vn-86882117 UUID is 7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:37,697 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800, 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-54832642:ctest-vn-86882117, 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]
2024-09-17 07:08:38,029 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd96c9784-7eed-4d18-86f3-d9e94c311c36', 'name': 'ctest-vn-95443800', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5fe8347a-7425-4d3b-a639-dd4262632300'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-95443800'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']], 'subnet_ipam': [{'subnet_cidr': '215.43.52.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 07:08:38,288 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7946ca69-9fda-4277-b137-9b702dc505e4', 'name': 'ctest-vn-86882117', 'tenant_id': 'd6342153684149c6b717c70dd8b85017', 'project_id': 'd6342153684149c6b717c70dd8b85017', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6c49ff5-9031-4986-822f-0b03160519ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-vn-86882117'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']], 'subnet_ipam': [{'subnet_cidr': '79.143.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-17 07:08:38,445 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-17 07:08:38,810 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-17 07:08:38,846 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398
2024-09-17 07:08:38,863 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017
2024-09-17 07:08:38,953 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:38,969 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:38,989 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f
2024-09-17 07:08:38,999 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f
2024-09-17 07:08:39,009 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/fe869b67-69de-48df-b1b0-e5c8ec35250f
2024-09-17 07:08:39,020 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 07:08:39,020 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:39,039 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f
2024-09-17 07:08:39,061 - INFO - Verified VN network id 8 for VN d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:39,061 - INFO - Verifications in API Server for VN ctest-vn-95443800 passed
2024-09-17 07:08:39,062 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:39,078 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f
2024-09-17 07:08:39,088 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/4f6ad6d4-7edd-4fb2-bdae-5718023dfe5f
2024-09-17 07:08:39,102 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/fe869b67-69de-48df-b1b0-e5c8ec35250f
2024-09-17 07:08:39,121 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54832642', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15667063799036071192', 'uuid-lslong': '9724355616451927094'}, 'enable': 'true', 'created': '2024-09-17T07:08:36', 'last-modified': '2024-09-17T07:08:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.126510'}
2024-09-17 07:08:39,128 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-17 07:08:39,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95443800 passed
2024-09-17 07:08:39,129 - DEBUG - ====Verifying policy data for ctest-vn-95443800 in API_Server ======
2024-09-17 07:08:39,129 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-17 07:08:39,135 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398
2024-09-17 07:08:39,149 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017
2024-09-17 07:08:39,245 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/d96c9784-7eed-4d18-86f3-d9e94c311c36
2024-09-17 07:08:39,261 - DEBUG - ==>Verifying data for policy with id: 8786b2dd-c069-4641-ae2d-4d5e384c3ef5, fqn: ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']
2024-09-17 07:08:39,261 - INFO - VN ctest-vn-95443800 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 07:08:39,261 - DEBUG - Verifying the vn in opserver
2024-09-17 07:08:39,261 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800 virtual network link through opserver 10.0.0.37
2024-09-17 07:08:39,261 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-17 07:08:39,597 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-17 07:08:39,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800?flat'}
2024-09-17 07:08:39,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-95443800 is found in opserver
2024-09-17 07:08:39,678 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 07:08:39,683 - DEBUG - VRF ids for VN ctest-vn-95443800: {}
2024-09-17 07:08:39,683 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-17 07:08:39,690 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398
2024-09-17 07:08:39,703 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017
2024-09-17 07:08:39,788 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:39,808 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:39,823 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7
2024-09-17 07:08:39,832 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7
2024-09-17 07:08:39,842 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9661ac0f-b565-467c-828e-c77c783ecc83
2024-09-17 07:08:39,850 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 07:08:39,850 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:39,865 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7
2024-09-17 07:08:39,887 - INFO - Verified VN network id 9 for VN 7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:39,887 - INFO - Verifications in API Server for VN ctest-vn-86882117 passed
2024-09-17 07:08:39,887 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:39,904 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7
2024-09-17 07:08:39,913 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/6cf5b43c-ebec-45fd-8830-25df59e695c7
2024-09-17 07:08:39,923 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9661ac0f-b565-467c-828e-c77c783ecc83
2024-09-17 07:08:39,938 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54832642', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8738894681961284215', 'uuid-lslong': '12769846174538860004'}, 'enable': 'true', 'created': '2024-09-17T07:08:37', 'last-modified': '2024-09-17T07:08:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.680894'}
2024-09-17 07:08:39,946 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-17 07:08:39,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-86882117 passed
2024-09-17 07:08:39,946 - DEBUG - ====Verifying policy data for ctest-vn-86882117 in API_Server ======
2024-09-17 07:08:39,946 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2024-09-17 07:08:39,952 - DEBUG - Requesting: http://10.0.0.37:8082/domain/8fc24e1e-d1f1-4dee-b3af-a8b458a7a398
2024-09-17 07:08:39,966 - DEBUG - Requesting: http://10.0.0.37:8082/project/d6342153-6841-49c6-b717-c70dd8b85017
2024-09-17 07:08:40,050 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/7946ca69-9fda-4277-b137-9b702dc505e4
2024-09-17 07:08:40,066 - DEBUG - ==>Verifying data for policy with id: 8786b2dd-c069-4641-ae2d-4d5e384c3ef5, fqn: ['default-domain', 'ctest-TestBasicPolicy-54832642', 'ctest-policy-allow-all-29042505']
2024-09-17 07:08:40,066 - INFO - VN ctest-vn-86882117 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-17 07:08:40,066 - DEBUG - Verifying the vn in opserver
2024-09-17 07:08:40,066 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117 virtual network link through opserver 10.0.0.37
2024-09-17 07:08:40,066 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2024-09-17 07:08:40,078 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117?flat'}
2024-09-17 07:08:40,078 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54832642:ctest-vn-86882117 is found in opserver
2024-09-17 07:08:40,096 - DEBUG - Do not have enough data to verify VN in agent
2024-09-17 07:08:40,102 - DEBUG - VRF ids for VN ctest-vn-86882117: {}
2024-09-17 07:08:40,161 - DEBUG - Services list from nova: [