2025-05-06 11:37:43,789 - INFO - Domain Default found not creating
2025-05-06 11:37:43,921 - INFO - Project ctest-TestBasicPolicy-55932564 not found, creating it
2025-05-06 11:37:44,364 - INFO - Created Project:ctest-TestBasicPolicy-55932564, ID : aaafd7b2-3f2c-415c-a871-3b0992fa43bc
2025-05-06 11:37:45,709 - INFO - ================================================================================
2025-05-06 11:37:45,709 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-06 11:37:45,709 - 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-05-06 11:37:45,960 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-05-06 11:37:45,960 - INFO - Initial checks done. Running the testcase now
2025-05-06 11:37:45,960 - INFO -
2025-05-06 11:37:46,483 - DEBUG - Response for create_network : {'network': {'id': 'ed6f0496-6c0e-45bf-a74b-8968617e2713', 'name': 'ctest-vn-39348580', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-vn-39348580'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:46,688 - DEBUG - Response for create_subnet : {'subnet': {'id': '32600ddd-c87f-4142-954f-f26f8038c627', 'name': '', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'network_id': 'ed6f0496-6c0e-45bf-a74b-8968617e2713', 'ip_version': 4, 'cidr': '130.229.72.64/26', 'allocation_pools': [{'start': '130.229.72.66', 'end': '130.229.72.126'}], 'gateway_ip': '130.229.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '130.229.72.66', 'tags': [], 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc'}}
2025-05-06 11:37:46,704 - INFO - Created VN ctest-vn-39348580
2025-05-06 11:37:46,755 - DEBUG - VN ctest-vn-39348580 UUID is ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:47,068 - DEBUG - Response for create_network : {'network': {'id': '5f453d31-dcc7-4b5a-b266-4032c073033b', 'name': 'ctest-vn-70150904', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-vn-70150904'], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:47,230 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaea94da-4250-4879-b9e3-cd607519b73c', 'name': '', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'network_id': '5f453d31-dcc7-4b5a-b266-4032c073033b', 'ip_version': 4, 'cidr': '189.104.12.0/26', 'allocation_pools': [{'start': '189.104.12.2', 'end': '189.104.12.62'}], 'gateway_ip': '189.104.12.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '189.104.12.2', 'tags': [], 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc'}}
2025-05-06 11:37:47,247 - INFO - Created VN ctest-vn-70150904
2025-05-06 11:37:47,299 - DEBUG - VN ctest-vn-70150904 UUID is 5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:47,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580, 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-55932564:ctest-vn-70150904, 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-05-06 11:37:47,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed6f0496-6c0e-45bf-a74b-8968617e2713', 'name': 'ctest-vn-39348580', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['32600ddd-c87f-4142-954f-f26f8038c627'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-vn-39348580'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-policy-allow-all-72723395']], 'subnet_ipam': [{'subnet_cidr': '130.229.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:47,930 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f453d31-dcc7-4b5a-b266-4032c073033b', 'name': 'ctest-vn-70150904', 'tenant_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'project_id': 'aaafd7b23f2c415ca8713b0992fa43bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaea94da-4250-4879-b9e3-cd607519b73c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-vn-70150904'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-policy-allow-all-72723395']], 'subnet_ipam': [{'subnet_cidr': '189.104.12.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-06 11:37:48,099 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-06 11:37:48,394 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-06 11:37:48,421 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5d70fbfc-aa05-4339-bd03-c0009cb47069
2025-05-06 11:37:48,434 - DEBUG - Requesting: http://10.0.0.50:8082/project/aaafd7b2-3f2c-415c-a871-3b0992fa43bc
2025-05-06 11:37:48,511 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,524 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,534 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d321b7d5-32b0-4b7c-a7b7-258ca86972d4
2025-05-06 11:37:48,540 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d321b7d5-32b0-4b7c-a7b7-258ca86972d4
2025-05-06 11:37:48,547 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/839eb17d-6a24-4516-9fde-083bc9fb1778
2025-05-06 11:37:48,553 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 11:37:48,553 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,564 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d321b7d5-32b0-4b7c-a7b7-258ca86972d4
2025-05-06 11:37:48,577 - INFO - Verified VN network id 9 for VN ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,577 - INFO - Verifications in API Server for VN ctest-vn-39348580 passed
2025-05-06 11:37:48,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,585 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d321b7d5-32b0-4b7c-a7b7-258ca86972d4
2025-05-06 11:37:48,593 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/d321b7d5-32b0-4b7c-a7b7-258ca86972d4
2025-05-06 11:37:48,599 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/839eb17d-6a24-4516-9fde-083bc9fb1778
2025-05-06 11:37:48,609 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55932564', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17108898553508283839', 'uuid-lslong': '12054879908992526099'}, 'enable': 'true', 'created': '2025-05-06T11:37:46', 'last-modified': '2025-05-06T11:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.924342'}
2025-05-06 11:37:48,615 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-06 11:37:48,615 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-39348580 passed
2025-05-06 11:37:48,615 - DEBUG - ====Verifying policy data for ctest-vn-39348580 in API_Server ======
2025-05-06 11:37:48,615 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-06 11:37:48,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5d70fbfc-aa05-4339-bd03-c0009cb47069
2025-05-06 11:37:48,630 - DEBUG - Requesting: http://10.0.0.50:8082/project/aaafd7b2-3f2c-415c-a871-3b0992fa43bc
2025-05-06 11:37:48,713 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ed6f0496-6c0e-45bf-a74b-8968617e2713
2025-05-06 11:37:48,724 - DEBUG - ==>Verifying data for policy with id: 1a05a02a-35f4-44cf-9628-e0eeb94df8f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-policy-allow-all-72723395']
2025-05-06 11:37:48,724 - INFO - VN ctest-vn-39348580 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 11:37:48,725 - DEBUG - Verifying the vn in opserver
2025-05-06 11:37:48,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580 virtual network link through opserver 10.0.0.50
2025-05-06 11:37:48,725 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-06 11:37:49,016 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-06 11:37:49,073 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580?flat'}
2025-05-06 11:37:49,073 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-39348580 is found in opserver
2025-05-06 11:37:49,083 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 11:37:49,088 - DEBUG - VRF ids for VN ctest-vn-39348580: {}
2025-05-06 11:37:49,089 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-06 11:37:49,094 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5d70fbfc-aa05-4339-bd03-c0009cb47069
2025-05-06 11:37:49,104 - DEBUG - Requesting: http://10.0.0.50:8082/project/aaafd7b2-3f2c-415c-a871-3b0992fa43bc
2025-05-06 11:37:49,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,185 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,194 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa00ee08-e762-4ec6-93bd-0906335f7e48
2025-05-06 11:37:49,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa00ee08-e762-4ec6-93bd-0906335f7e48
2025-05-06 11:37:49,206 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8cc660b3-7263-46e8-bb0c-00cdd2fc703a
2025-05-06 11:37:49,212 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 11:37:49,212 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa00ee08-e762-4ec6-93bd-0906335f7e48
2025-05-06 11:37:49,241 - INFO - Verified VN network id 10 for VN 5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,241 - INFO - Verifications in API Server for VN ctest-vn-70150904 passed
2025-05-06 11:37:49,241 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,252 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa00ee08-e762-4ec6-93bd-0906335f7e48
2025-05-06 11:37:49,258 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fa00ee08-e762-4ec6-93bd-0906335f7e48
2025-05-06 11:37:49,264 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8cc660b3-7263-46e8-bb0c-00cdd2fc703a
2025-05-06 11:37:49,275 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-70150904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-55932564', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6864960491362929498', 'uuid-lslong': '12855032773096964923'}, 'enable': 'true', 'created': '2025-05-06T11:37:47', 'last-modified': '2025-05-06T11:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.369160'}
2025-05-06 11:37:49,281 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-06 11:37:49,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70150904 passed
2025-05-06 11:37:49,281 - DEBUG - ====Verifying policy data for ctest-vn-70150904 in API_Server ======
2025-05-06 11:37:49,281 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-06 11:37:49,288 - DEBUG - Requesting: http://10.0.0.50:8082/domain/5d70fbfc-aa05-4339-bd03-c0009cb47069
2025-05-06 11:37:49,299 - DEBUG - Requesting: http://10.0.0.50:8082/project/aaafd7b2-3f2c-415c-a871-3b0992fa43bc
2025-05-06 11:37:49,372 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/5f453d31-dcc7-4b5a-b266-4032c073033b
2025-05-06 11:37:49,383 - DEBUG - ==>Verifying data for policy with id: 1a05a02a-35f4-44cf-9628-e0eeb94df8f9, fqn: ['default-domain', 'ctest-TestBasicPolicy-55932564', 'ctest-policy-allow-all-72723395']
2025-05-06 11:37:49,383 - INFO - VN ctest-vn-70150904 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-06 11:37:49,383 - DEBUG - Verifying the vn in opserver
2025-05-06 11:37:49,383 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-70150904 virtual network link through opserver 10.0.0.50
2025-05-06 11:37:49,383 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-06 11:37:49,393 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-70150904', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-70150904?flat'}
2025-05-06 11:37:49,393 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-55932564:ctest-vn-70150904 is found in opserver
2025-05-06 11:37:49,402 - DEBUG - Do not have enough data to verify VN in agent
2025-05-06 11:37:49,407 - DEBUG - VRF ids for VN ctest-vn-70150904: {}
2025-05-06 11:37:49,456 - DEBUG - Services list from nova: [