2024-10-19 09:26:15,987 - INFO - Domain Default found not creating
2024-10-19 09:26:16,207 - INFO - Project ctest-TestBasicPolicy-67887259 not found, creating it
2024-10-19 09:26:16,761 - INFO - Created Project:ctest-TestBasicPolicy-67887259, ID : 67ab35b7-40f5-4adb-ad08-fed3d9a31ee3
2024-10-19 09:26:18,783 - INFO - ================================================================================
2024-10-19 09:26:18,784 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-19 09:26:18,784 - 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-10-19 09:26:19,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.20': '0'}} with
2024-10-19 09:26:19,056 - INFO - Initial checks done. Running the testcase now
2024-10-19 09:26:19,056 - INFO -
2024-10-19 09:26:19,778 - DEBUG - Response for create_network : {'network': {'id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'name': 'ctest-vn-05861655', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-05861655'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:26:20,008 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a89229c1-4bfd-4cfb-b572-3b45daa03671', 'name': '', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'network_id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'ip_version': 4, 'cidr': '120.93.235.0/26', 'allocation_pools': [{'start': '120.93.235.2', 'end': '120.93.235.62'}], 'gateway_ip': '120.93.235.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.93.235.2', 'tags': [], 'project_id': '67ab35b740f54adbad08fed3d9a31ee3'}}
2024-10-19 09:26:20,032 - INFO - Created VN ctest-vn-05861655
2024-10-19 09:26:20,094 - DEBUG - VN ctest-vn-05861655 UUID is 41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:20,503 - DEBUG - Response for create_network : {'network': {'id': '9f16b314-efa0-46ef-b15c-114e30296084', 'name': 'ctest-vn-75654091', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-75654091'], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:26:20,765 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fdcc0de-297a-4e93-8a08-5b46bc799c58', 'name': '', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'network_id': '9f16b314-efa0-46ef-b15c-114e30296084', 'ip_version': 4, 'cidr': '78.238.13.128/26', 'allocation_pools': [{'start': '78.238.13.130', 'end': '78.238.13.190'}], 'gateway_ip': '78.238.13.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.238.13.130', 'tags': [], 'project_id': '67ab35b740f54adbad08fed3d9a31ee3'}}
2024-10-19 09:26:20,797 - INFO - Created VN ctest-vn-75654091
2024-10-19 09:26:20,862 - DEBUG - VN ctest-vn-75654091 UUID is 9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:21,012 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655, 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-67887259:ctest-vn-75654091, 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-10-19 09:26:21,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '41ad6460-d1a8-4825-afd4-c19f84624531', 'name': 'ctest-vn-05861655', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a89229c1-4bfd-4cfb-b572-3b45daa03671'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-05861655'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']], 'subnet_ipam': [{'subnet_cidr': '120.93.235.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:26:21,695 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f16b314-efa0-46ef-b15c-114e30296084', 'name': 'ctest-vn-75654091', 'tenant_id': '67ab35b740f54adbad08fed3d9a31ee3', 'project_id': '67ab35b740f54adbad08fed3d9a31ee3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3fdcc0de-297a-4e93-8a08-5b46bc799c58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-vn-75654091'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']], 'subnet_ipam': [{'subnet_cidr': '78.238.13.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-19 09:26:21,882 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-19 09:26:22,238 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-19 09:26:22,280 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b
2024-10-19 09:26:22,316 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3
2024-10-19 09:26:22,430 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,469 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872
2024-10-19 09:26:22,493 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872
2024-10-19 09:26:22,515 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/39567295-41dc-466f-91f7-4c212725c4e9
2024-10-19 09:26:22,525 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 09:26:22,525 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,540 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872
2024-10-19 09:26:22,567 - INFO - Verified VN network id 7 for VN 41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,567 - INFO - Verifications in API Server for VN ctest-vn-05861655 passed
2024-10-19 09:26:22,567 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,584 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872
2024-10-19 09:26:22,594 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/f4184d89-f2bc-4630-833c-9651aba0e872
2024-10-19 09:26:22,604 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/39567295-41dc-466f-91f7-4c212725c4e9
2024-10-19 09:26:22,621 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67887259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4732549150433364005', 'uuid-lslong': '12669964542565041457'}, 'enable': 'true', 'created': '2024-10-19T09:26:19', 'last-modified': '2024-10-19T09:26:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.273909'}
2024-10-19 09:26:22,629 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-19 09:26:22,629 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05861655 passed
2024-10-19 09:26:22,629 - DEBUG - ====Verifying policy data for ctest-vn-05861655 in API_Server ======
2024-10-19 09:26:22,629 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-19 09:26:22,635 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b
2024-10-19 09:26:22,649 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3
2024-10-19 09:26:22,751 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/41ad6460-d1a8-4825-afd4-c19f84624531
2024-10-19 09:26:22,770 - DEBUG - ==>Verifying data for policy with id: 1b789d52-e514-405e-9c69-667bc202fbf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']
2024-10-19 09:26:22,770 - INFO - VN ctest-vn-05861655 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 09:26:22,770 - DEBUG - Verifying the vn in opserver
2024-10-19 09:26:22,770 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 virtual network link through opserver 10.0.0.23
2024-10-19 09:26:22,771 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-19 09:26:23,121 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-19 09:26:23,223 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655?flat'}
2024-10-19 09:26:23,223 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-05861655 is found in opserver
2024-10-19 09:26:23,238 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 09:26:23,248 - DEBUG - VRF ids for VN ctest-vn-05861655: {}
2024-10-19 09:26:23,248 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-19 09:26:23,255 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b
2024-10-19 09:26:23,280 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3
2024-10-19 09:26:23,376 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,400 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,417 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864
2024-10-19 09:26:23,431 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864
2024-10-19 09:26:23,443 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/45e137d7-b3b1-475c-b6a9-6b982cb4bed1
2024-10-19 09:26:23,452 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 09:26:23,452 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,469 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864
2024-10-19 09:26:23,505 - INFO - Verified VN network id 8 for VN 9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,506 - INFO - Verifications in API Server for VN ctest-vn-75654091 passed
2024-10-19 09:26:23,506 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,524 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864
2024-10-19 09:26:23,537 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a7304cce-78af-4caa-a9f8-4b572119c864
2024-10-19 09:26:23,548 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/45e137d7-b3b1-475c-b6a9-6b982cb4bed1
2024-10-19 09:26:23,571 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67887259', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11463546804019152623', 'uuid-lslong': '12780108870083764356'}, 'enable': 'true', 'created': '2024-10-19T09:26:20', 'last-modified': '2024-10-19T09:26:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.900947'}
2024-10-19 09:26:23,578 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-19 09:26:23,579 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75654091 passed
2024-10-19 09:26:23,579 - DEBUG - ====Verifying policy data for ctest-vn-75654091 in API_Server ======
2024-10-19 09:26:23,579 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2024-10-19 09:26:23,587 - DEBUG - Requesting: http://10.0.0.23:8082/domain/af60f3e8-1640-49cf-92a7-967e3839bb4b
2024-10-19 09:26:23,603 - DEBUG - Requesting: http://10.0.0.23:8082/project/67ab35b7-40f5-4adb-ad08-fed3d9a31ee3
2024-10-19 09:26:23,708 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9f16b314-efa0-46ef-b15c-114e30296084
2024-10-19 09:26:23,724 - DEBUG - ==>Verifying data for policy with id: 1b789d52-e514-405e-9c69-667bc202fbf8, fqn: ['default-domain', 'ctest-TestBasicPolicy-67887259', 'ctest-policy-allow-all-15997621']
2024-10-19 09:26:23,725 - INFO - VN ctest-vn-75654091 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-19 09:26:23,725 - DEBUG - Verifying the vn in opserver
2024-10-19 09:26:23,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091 virtual network link through opserver 10.0.0.23
2024-10-19 09:26:23,725 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2024-10-19 09:26:23,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091?flat'}
2024-10-19 09:26:23,740 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67887259:ctest-vn-75654091 is found in opserver
2024-10-19 09:26:23,761 - DEBUG - Do not have enough data to verify VN in agent
2024-10-19 09:26:23,768 - DEBUG - VRF ids for VN ctest-vn-75654091: {}
2024-10-19 09:26:23,837 - DEBUG - Services list from nova: [