2024-11-08 18:27:47,409 - INFO - Domain Default found not creating
2024-11-08 18:27:47,578 - INFO - Project ctest-TestBasicPolicy-39119948 not found, creating it
2024-11-08 18:27:48,100 - INFO - Created Project:ctest-TestBasicPolicy-39119948, ID : 22cc4a71-48cb-453a-b883-9c9f53d83a0f
2024-11-08 18:27:49,794 - INFO - ================================================================================
2024-11-08 18:27:49,795 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-08 18:27:49,795 - 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-11-08 18:27:50,050 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.18': '0'}} with
2024-11-08 18:27:50,051 - INFO - Initial checks done. Running the testcase now
2024-11-08 18:27:50,051 - INFO -
2024-11-08 18:27:50,686 - DEBUG - Response for create_network : {'network': {'id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'name': 'ctest-vn-83424164', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-83424164'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:27:50,863 - DEBUG - Response for create_subnet : {'subnet': {'id': '8049af4c-34eb-4dad-bda1-e805db5a56d5', 'name': '', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'network_id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'ip_version': 4, 'cidr': '135.196.27.128/26', 'allocation_pools': [{'start': '135.196.27.130', 'end': '135.196.27.190'}], 'gateway_ip': '135.196.27.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.196.27.130', 'tags': [], 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f'}}
2024-11-08 18:27:50,886 - INFO - Created VN ctest-vn-83424164
2024-11-08 18:27:50,949 - DEBUG - VN ctest-vn-83424164 UUID is d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:51,288 - DEBUG - Response for create_network : {'network': {'id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'name': 'ctest-vn-55423793', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-55423793'], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:27:51,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '590de9c6-ddc8-4024-8083-6d21d3dc017f', 'name': '', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'network_id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'ip_version': 4, 'cidr': '160.25.185.64/26', 'allocation_pools': [{'start': '160.25.185.66', 'end': '160.25.185.126'}], 'gateway_ip': '160.25.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.25.185.66', 'tags': [], 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f'}}
2024-11-08 18:27:51,525 - INFO - Created VN ctest-vn-55423793
2024-11-08 18:27:51,584 - DEBUG - VN ctest-vn-55423793 UUID is 14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:51,733 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164, 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-39119948:ctest-vn-55423793, 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-11-08 18:27:52,077 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd2e611fc-c73f-49dc-bb54-1c00843fd0a0', 'name': 'ctest-vn-83424164', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8049af4c-34eb-4dad-bda1-e805db5a56d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-83424164'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']], 'subnet_ipam': [{'subnet_cidr': '135.196.27.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:27:52,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14f5bc71-fcaf-42e0-bedc-7fc848cdd361', 'name': 'ctest-vn-55423793', 'tenant_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'project_id': '22cc4a7148cb453ab8839c9f53d83a0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['590de9c6-ddc8-4024-8083-6d21d3dc017f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-vn-55423793'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']], 'subnet_ipam': [{'subnet_cidr': '160.25.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-08 18:27:52,508 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-08 18:27:52,855 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-08 18:27:52,891 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c
2024-11-08 18:27:52,909 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f
2024-11-08 18:27:53,000 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,018 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,034 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b
2024-11-08 18:27:53,043 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b
2024-11-08 18:27:53,053 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/20c00d9c-2e92-4934-9dcc-7cbc2b419a4e
2024-11-08 18:27:53,061 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:27:53,061 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,076 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b
2024-11-08 18:27:53,098 - INFO - Verified VN network id 8 for VN d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,098 - INFO - Verifications in API Server for VN ctest-vn-83424164 passed
2024-11-08 18:27:53,098 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,112 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b
2024-11-08 18:27:53,121 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/b7761ba9-2f63-4578-845d-60d21e68692b
2024-11-08 18:27:53,130 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/20c00d9c-2e92-4934-9dcc-7cbc2b419a4e
2024-11-08 18:27:53,145 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39119948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15196853769980561884', 'uuid-lslong': '13498444771680571552'}, 'enable': 'true', 'created': '2024-11-08T18:27:50', 'last-modified': '2024-11-08T18:27:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.100542'}
2024-11-08 18:27:53,153 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-08 18:27:53,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83424164 passed
2024-11-08 18:27:53,154 - DEBUG - ====Verifying policy data for ctest-vn-83424164 in API_Server ======
2024-11-08 18:27:53,154 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-08 18:27:53,159 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c
2024-11-08 18:27:53,174 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f
2024-11-08 18:27:53,256 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/d2e611fc-c73f-49dc-bb54-1c00843fd0a0
2024-11-08 18:27:53,272 - DEBUG - ==>Verifying data for policy with id: b8c1f126-d672-4907-80fb-29eda72205d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']
2024-11-08 18:27:53,273 - INFO - VN ctest-vn-83424164 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:27:53,273 - DEBUG - Verifying the vn in opserver
2024-11-08 18:27:53,273 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164 virtual network link through opserver 10.0.0.31
2024-11-08 18:27:53,273 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-08 18:27:53,617 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-08 18:27:53,681 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164?flat'}
2024-11-08 18:27:53,681 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-83424164 is found in opserver
2024-11-08 18:27:53,693 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:27:53,699 - DEBUG - VRF ids for VN ctest-vn-83424164: {}
2024-11-08 18:27:53,699 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-08 18:27:53,705 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c
2024-11-08 18:27:53,719 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f
2024-11-08 18:27:53,805 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:53,824 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:53,839 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58
2024-11-08 18:27:53,849 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58
2024-11-08 18:27:53,858 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/299c01de-34a6-4cab-bce4-13b8dd7dd239
2024-11-08 18:27:53,866 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:27:53,866 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:53,882 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58
2024-11-08 18:27:53,906 - INFO - Verified VN network id 9 for VN 14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:53,906 - INFO - Verifications in API Server for VN ctest-vn-55423793 passed
2024-11-08 18:27:53,907 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:53,923 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58
2024-11-08 18:27:53,932 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c306efe2-789d-4491-9fa0-6d1cf9a11d58
2024-11-08 18:27:53,940 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/299c01de-34a6-4cab-bce4-13b8dd7dd239
2024-11-08 18:27:53,954 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39119948', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1510320447809340128', 'uuid-lslong': '13753007860274287457'}, 'enable': 'true', 'created': '2024-11-08T18:27:51', 'last-modified': '2024-11-08T18:27:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.676788'}
2024-11-08 18:27:53,961 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-08 18:27:53,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55423793 passed
2024-11-08 18:27:53,961 - DEBUG - ====Verifying policy data for ctest-vn-55423793 in API_Server ======
2024-11-08 18:27:53,961 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2024-11-08 18:27:53,967 - DEBUG - Requesting: http://10.0.0.31:8082/domain/5d60838b-5a12-4335-bc4c-cc3d05d3a45c
2024-11-08 18:27:53,982 - DEBUG - Requesting: http://10.0.0.31:8082/project/22cc4a71-48cb-453a-b883-9c9f53d83a0f
2024-11-08 18:27:54,073 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/14f5bc71-fcaf-42e0-bedc-7fc848cdd361
2024-11-08 18:27:54,089 - DEBUG - ==>Verifying data for policy with id: b8c1f126-d672-4907-80fb-29eda72205d7, fqn: ['default-domain', 'ctest-TestBasicPolicy-39119948', 'ctest-policy-allow-all-76433334']
2024-11-08 18:27:54,089 - INFO - VN ctest-vn-55423793 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-08 18:27:54,089 - DEBUG - Verifying the vn in opserver
2024-11-08 18:27:54,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793 virtual network link through opserver 10.0.0.31
2024-11-08 18:27:54,089 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2024-11-08 18:27:54,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793?flat'}
2024-11-08 18:27:54,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39119948:ctest-vn-55423793 is found in opserver
2024-11-08 18:27:54,117 - DEBUG - Do not have enough data to verify VN in agent
2024-11-08 18:27:54,123 - DEBUG - VRF ids for VN ctest-vn-55423793: {}
2024-11-08 18:27:54,184 - DEBUG - Services list from nova: [